Skip to content

Commit 0a05697

Browse files
committed
simplify
1 parent 01933d5 commit 0a05697

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

packages/svelte/src/internal/client/each.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -837,9 +837,7 @@ export function destroy_each_item_block(
837837

838838
/**
839839
* @template V
840-
* @template O
841-
* @template P
842-
* @param {V | import('./types.js').LazyProperty<O, P>} item
840+
* @param {V} item
843841
* @param {unknown} key
844842
* @param {number} index
845843
* @param {(anchor: null, item: V, index: number | import('./types.js').Signal<number>) => void} render_fn

packages/svelte/src/internal/client/types.d.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
SNIPPET_BLOCK
1212
} from './block.js';
1313
import type { READONLY_SYMBOL, STATE_SYMBOL } from './proxy.js';
14-
import { DERIVED, EFFECT, RENDER_EFFECT, SOURCE, PRE_EFFECT, LAZY_PROPERTY } from './runtime.js';
14+
import { DERIVED, EFFECT, RENDER_EFFECT, SOURCE, PRE_EFFECT } from './runtime.js';
1515

1616
// Put all internal types in this file. Once we convert to JSDoc, we can make this a d.ts file
1717

@@ -123,12 +123,6 @@ export type MaybeSignal<T = unknown> = T | Signal<T>;
123123

124124
export type UnwrappedSignal<T> = T extends Signal<infer U> ? U : T;
125125

126-
export type LazyProperty<O, P> = {
127-
o: O;
128-
p: P;
129-
t: typeof LAZY_PROPERTY;
130-
};
131-
132126
export type EqualsFunctions<T = any> = (a: T, v: T) => boolean;
133127

134128
export type BlockType =

0 commit comments

Comments
 (0)