Class overview
Added in v2.2.0
Table of contents
Combinators
Class
A schema combinator which transforms the output type of a schema to a specified class
Signature
export declare const Class: <T, O>(
constructor: new (...args: ReadonlyArray<any>) => T,
toClass: (output: O) => T,
fromClass: (class_: T) => O
) => <I>(schema: Schema<I, O>) => Schema<I, T>
Added in v2.2.0