Char overview
A string of length one.
Added in v1.0.0
Table of contents
utils
Char
Signature
export declare const Char: t.BrandC<t.StringC, CharBrand>
Added in v1.0.0
Char (type alias)
Signature
export type Char = t.Branded<string, CharBrand>
Added in v1.0.0
CharBrand (interface)
Signature
export interface CharBrand {
readonly Char: unique symbol
}
Added in v1.0.0
charDecoder
Signature
export declare const charDecoder: <S extends string>() => D.Decoder<S, t.Branded<S, t.Branded<string, CharBrand>>>
Added in v1.1.0
isChar
Signature
export declare const isChar: (s: string) => boolean
Added in v1.0.0