remove unused type

blockless
Rich Harris 10 months ago
parent 25dcfabcd8
commit 611346ef3d

@ -87,11 +87,7 @@ export type Computation<V = unknown> = {
/** The types that the signal represent, as a bitwise value */ /** The types that the signal represent, as a bitwise value */
f: SignalFlags; f: SignalFlags;
/** init: The function that we invoke for effects and computeds */ /** init: The function that we invoke for effects and computeds */
i: i: null | (() => V) | (() => void | (() => void)) | ((b: null, s: Signal) => void | (() => void));
| null
| (() => V)
| (() => void | (() => void))
| ((b: Block, s: Signal) => void | (() => void));
/** references: Anything that a signal owns */ /** references: Anything that a signal owns */
r: null | Computation[]; r: null | Computation[];
/** value: The latest value for this signal, doubles as the teardown for effects */ /** value: The latest value for this signal, doubles as the teardown for effects */
@ -157,8 +153,6 @@ export type EachItemBlock = {
k: unknown; k: unknown;
}; };
export type Block = EachItemBlock;
export type TransitionFn<P> = ( export type TransitionFn<P> = (
element: Element, element: Element,
props: P, props: P,

Loading…
Cancel
Save