core / type

PlainValue

Extracts a plain value from a `MaybeSignalValue`.

Source: src/_core/types.ts

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