Signalize
Signalize<
T
>:T
extendsobject
? { [P in keyof T]: T[P] | Signal<T[P]> } :Signal
<T
> |T
Defined in: core/signal/signal.types.ts:143
Converts an object type to a type where all properties are either the original type or a Signal of the original type Convert a non object type to a type that is either the original type or a Signal of the original type
Type Parameters
• T
Examples
type Object = { a: number, b: string };type SignalizedObject = Signalize<Object>; // { a: Signal<number> | number, b: Signal<string> | string }
type NumberOrSignal = Signalize<number>; // Signal<number> | number