core / type

MaybeSignalValues

Converts a tuple type to a tuple of `MaybeSignalValue` types.

Source: src/_core/types.ts

Converts a tuple type to a tuple of MaybeSignalValue types.

Functions are left as-is, while other values are converted to MaybeSignalValue.

Signature

export type MaybeSignalValues<T extends any[]> = {
  [K in keyof T]: T[K] extends (...args: any[]) => any
    ? T[K]
    : MaybeSignalValue<T[K]>;
};

Type Parameters

  • The tuple type to convert

See Also