Type aliases
EncodedString
EncodedString<
T
,TEncoding
> =NominalType
<"stringEncoding"
,TEncoding
> &T
Use this to produce a new type that satisfies the original string type, but adds extra type information that marks the string as being encoded in a particular format.
Type Parameters
Type Parameter | Description |
---|---|
T extends string | The underlying string type |
TEncoding extends StringEncoding | The encoding format of the string |