Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 566 Bytes

paratype.consttype.md

File metadata and controls

24 lines (14 loc) · 566 Bytes

Home > paratype > constType

constType() function

Constructs a Type that represents a fixed string value.

Signature:

export declare function constType<T extends string>(fixed: T): Type<T>;

Parameters

Parameter Type Description
fixed T

Returns:

Type<T>