core / type

MaybeSignal

A union type representing a signal or a plain value.

Source: src/_core/types.ts

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