core / type
PlainValue
Extracts a plain value from a `MaybeSignalValue`.
Extracts a plain value from a MaybeSignalValue.
If the input is a signalified object, returns the wrapped value. Otherwise, returns the input as-is.
Signature
export type PlainValue<I extends MaybeSignalValue<unknown>> =
I extends SignalifiedObject<infer T> ? T : I;
Type Parameters
- The MaybeSignalValue type
See Also
- MaybeSignalValue - For the MaybeSignalValue type
- SignalifiedObject - For signalified objects