core / type
MaybeSignal
A union type representing a signal or a plain value.
A union type representing a signal or a plain value.
This is commonly used for function parameters that can accept either a signal or a plain value of the same type.
Signature
export type MaybeSignal<T> = T | Signal<T>;
Type Parameters
- The type of value
See Also
- Signal - For signal types