Newtype overview
Added in v1.4.0
Table of contents
Combinators
Newtype
A schema for wrapping an inner schema’s output value in a newtype.
Signature
export declare const Newtype: <N extends Nt.Newtype<any, any>>(
iso: Nt.NewtypeIso<N, Nt.CarrierOf<N>>,
name?: string | undefined
) => <O>(innerType: Schema<O, Nt.CarrierOf<N>>) => Schema<O, N>
Added in v1.4.0