NodeBuilder
Defined in: packages/schema/src/builders/node.ts:10
Extends
Section titled “Extends”Builder<Node,ExtractOutputFromTypes<TMap>,NodeType<TMap>>
Type Parameters
Section titled “Type Parameters”TMap extends Record<string, Type<Node, any>>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NodeBuilder<
TMap>(composition_):NodeBuilder<TMap>
Defined in: packages/schema/src/builders/node.ts:13
Parameters
Section titled “Parameters”composition_
Section titled “composition_”TMap
Returns
Section titled “Returns”NodeBuilder<TMap>
Overrides
Section titled “Overrides”Properties
Section titled “Properties”input_
Section titled “input_”
readonlyinput_:Node
Defined in: packages/schema/src/builders/base.ts:9
Inherited from
Section titled “Inherited from”output_
Section titled “output_”
readonlyoutput_:TOut
Defined in: packages/schema/src/builders/base.ts:10
Inherited from
Section titled “Inherited from”
readonlytype_:NodeType
Defined in: packages/schema/src/builders/base.ts:11
Inherited from
Section titled “Inherited from”validators_
Section titled “validators_”
protectedvalidators_:Validator<ExtractOutputFromTypes<TMap>>[]
Defined in: packages/schema/src/builders/base.ts:13
Inherited from
Section titled “Inherited from”Accessors
Section titled “Accessors”composition
Section titled “composition”Get Signature
Section titled “Get Signature”get composition():
TMap
Defined in: packages/schema/src/builders/node.ts:17
Returns
Section titled “Returns”TMap
params
Section titled “params”Get Signature
Section titled “Get Signature”get params():
NodeTypeParams<TMap>
Defined in: packages/schema/src/builders/node.ts:21
Returns
Section titled “Returns”NodeTypeParams<TMap>
Overrides
Section titled “Overrides”Methods
Section titled “Methods”build()
Section titled “build()”build():
NodeType<TMap>
Defined in: packages/schema/src/builders/node.ts:34
Returns
Section titled “Returns”NodeType<TMap>
Overrides
Section titled “Overrides”clone()
Section titled “clone()”clone():
this
Defined in: packages/schema/src/builders/node.ts:28
Returns
Section titled “Returns”this
Overrides
Section titled “Overrides”oneOf()
Section titled “oneOf()”oneOf(
values,equal?):NodeBuilder<TMap>
Defined in: packages/schema/src/builders/base.ts:42
Parameters
Section titled “Parameters”values
Section titled “values”ExtractOutputFromTypes<TMap>[]
equal?
Section titled “equal?”(value, other) => boolean
Returns
Section titled “Returns”NodeBuilder<TMap>
Inherited from
Section titled “Inherited from”test()
Section titled “test()”test(
func,message?):this
Defined in: packages/schema/src/builders/base.ts:33
Parameters
Section titled “Parameters”ValidatorFunction<ExtractOutputFromTypes<TMap>>
message?
Section titled “message?”string
Returns
Section titled “Returns”this