Interface Failed<Msg>

💀 deprecated since 8.0.0: use $Error instead.

A failed type with message.

This is analogous to the Error class in JavaScript.

It can be used in type-level programming to failed an error message.

If you want to add additional type information, use FailedT or create your own failed type instead.

type T = Failed<'error message'>
interface Failed<Msg extends string> {
    "[uniSym]": Msg;
}

Type Parameters

  • Msg extends string

Properties

Properties

"[uniSym]": Msg