Interface FailedT<Msg, _T>

A failed type with message and one additional type.

Use this to add a generic type to the failed type.

e.g. FailedT<'missing', number | string>

It's recommended to create custom failed types instead of using this to provide better message.

interface FailedT<Msg, _T> {
    [uniSym]: Msg;
}

Type Parameters

  • Msg extends string
  • _T

Properties

Properties

[uniSym]: Msg