IntoType
Defined in: packages/schema/src/types/into.ts:15
Extends
Section titled “Extends”Type<TIn,TInto>
Type Parameters
Section titled “Type Parameters”TIn
TOut
TWrapped
Section titled “TWrapped”TWrapped extends Type<TIn, TOut>
TInto
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IntoType<
TIn,TOut,TWrapped,TInto>(__namedParameters):IntoType<TIn,TOut,TWrapped,TInto>
Defined in: packages/schema/src/types/into.ts:24
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”IntoTypeParams<TIn, TOut, TWrapped, TInto>
Returns
Section titled “Returns”IntoType<TIn, TOut, TWrapped, TInto>
Overrides
Section titled “Overrides”Properties
Section titled “Properties”input_
Section titled “input_”
readonlyinput_:TIn
Defined in: packages/schema/src/types/base.ts:34
Inherited from
Section titled “Inherited from”output_
Section titled “output_”
readonlyoutput_:TInto
Defined in: packages/schema/src/types/base.ts:35
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”wrapped
Section titled “wrapped”Get Signature
Section titled “Get Signature”get wrapped():
TWrapped
Defined in: packages/schema/src/types/into.ts:34
Returns
Section titled “Returns”TWrapped
Methods
Section titled “Methods”parse()
Section titled “parse()”parse(
value,ctx):Result<TInto,SchemaError>
Defined in: packages/schema/src/types/base.ts:58
Parameters
Section titled “Parameters”TIn | undefined
Returns
Section titled “Returns”Result<TInto, SchemaError>
Inherited from
Section titled “Inherited from”parse_()
Section titled “parse_()”parse_(
value,ctx):Result<TInto,SchemaError>
Defined in: packages/schema/src/types/into.ts:38
Parameters
Section titled “Parameters”TWrapped["input_"] | undefined
Returns
Section titled “Returns”Result<TInto, SchemaError>
Overrides
Section titled “Overrides”validate_()
Section titled “validate_()”
protectedvalidate_(value):Result<void,string>
Defined in: packages/schema/src/types/base.ts:48
Parameters
Section titled “Parameters”TInto
Returns
Section titled “Returns”Result<void, string>