Type alias TStringOfLength<S, Length>

TStringOfLength<S, Length>: TLengthOfString<S> extends Length
    ? S
    : never

A type representing a string of a specific length.

Type Parameters

  • S extends string

  • Length extends number

Generated using TypeDoc