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'>

Type Parameters

  • Msg extends string

Hierarchy

  • Failed

Properties

Properties

[uniSym]: Msg

Generated using TypeDoc