Branded<A, Key>A type alias for creating branded types more concisely.
utility types
Source effect/Brand.ts:2111 lines
export type type Branded<A, Key extends string> = A &
Brand<Key>
A type alias for creating branded types more concisely.
Branded<function (type parameter) A in type Branded<A, Key extends string>A, function (type parameter) Key in type Branded<A, Key extends string>Key extends string> = function (type parameter) A in type Branded<A, Key extends string>A & interface Brand<in out Keys extends string>A generic interface that defines a branded type.
When to use
Use to define a branded type such as number & Brand<"Positive"> when
TypeScript should keep structurally identical values separate without
changing their runtime value.
Namespace containing type-level helpers for working with branded types and
brand constructors.
Brand<function (type parameter) Key in type Branded<A, Key extends string>Key>Referenced by 3 symbols