Interface FailedT<Msg, _T>

💀 deprecated since 8.0.0: use $Error instead.

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 extends string, _T> {
    "[uniSym]": Msg;
}

Type Parameters

  • Msg extends string
  • _T

Properties

Properties

"[uniSym]": Msg