Skip to content

literal

literal<T>(value): TypeWrapper<T>

Defined in: .work/repos/edinburgh/src/types.ts:721

Create a literal type wrapper for a constant value.

T

The literal type.

T

The literal value.

TypeWrapper<T>

A literal type instance.

const statusType = E.literal("active");
const countType = E.literal(42);