Parse overview
Added in v2.0.0
Table of contents
Combinators
Parse
A schema for pre-parsing/printing a string
Signature
export declare const Parse: <I, IO extends string = string>(
inputName: string,
parse: (raw: string) => Either<unknown, unknown>,
print: (a: I) => Either<unknown, IO>,
options?: ParserOptions | undefined
) => <O>(inner: Schema<I, O>) => Schema<IO, O>
Added in v2.0.0
utils
ParserOptions (type alias)
Signature
export type ParserOptions = {
readonly contentEncoding?: string
readonly contentMediaType?: string
readonly format?: string
}
Added in v2.0.0