Interface Failed<Msg>

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> {
    [uniSym]: Msg;
}

Type Parameters

  • Msg extends string

Properties

Properties

[uniSym]: Msg