Type alias Opaque<K, T>

Opaque<K, T>: T & {
    [brand]: K;
}

Opaque types are wrappers of existing types that require smart constructors

Type Parameters

  • K

  • T

Type declaration

  • Readonly [brand]: K

Generated using TypeDoc