literal
literal<
T>(value):TypeWrapper<T>
Defined in: .work/repos/edinburgh/src/types.ts:721
Create a literal type wrapper for a constant value.
Type Parameters
Section titled “Type Parameters”T
The literal type.
Parameters
Section titled “Parameters”T
The literal value.
Returns
Section titled “Returns”TypeWrapper<T>
A literal type instance.
Example
Section titled “Example”const statusType = E.literal("active");const countType = E.literal(42);