Skip to content

Type Alias: Combinator<T> ​

WARNING

This API is experimental and may change in future versions.

A combinator produced by combinator factory functions.

Signature ​

ts
type Combinator<T> = { parse: (value: string) => T }

Type Parameters ​

NameDescription
TThe parsed value type.

Properties ​

NameTypeDescription
parse(value: string) => TThe parse function that converts a string to the desired type.

parse Parameters ​

NameTypeDescription
valuestringThe input string value.

parse Returns ​

T — The parsed value of type T.

Released under the MIT License.