StringOfLength
StringOfLength<Min, Max, Type>
StringOfLength<Min, Max, Type>
A string
type or an instance of String
of length between a specified range takes generic type variable Min
and Max
constrained by number
type as length, and takes generic type variable Type
constrained by generic type AnyString
as the type.
string-of-length.type.ts
Generic type variables
Min
extends
number
Min
extends
number
A generic type variable Min
constrained by the number
type indicates the minimum length of the generic type variable Type
.
Max
extends
number
Max
extends
number
A generic type variable Max
constrained by the number
type indicates the maximum length of the generic type variable Type
.
Type
extends
AnyString
=
string
Type
extends
AnyString
=
string
A generic type variable Type
constrained by generic type AnyString
indicates string
type.
Last updated