Skip to content

RegistryUnionBuilder

Defined in: packages/schema/src/builders/registry-union.ts:10

TOut

TType extends Type<Node, any>

new RegistryUnionBuilder<TOut, TType>(registry_): RegistryUnionBuilder<TOut, TType>

Defined in: packages/schema/src/builders/registry-union.ts:14

IRegistry<Node, TOut, TType>

RegistryUnionBuilder<TOut, TType>

Builder.constructor

readonly input_: Node

Defined in: packages/schema/src/builders/base.ts:9

Builder.input_


readonly output_: TOut

Defined in: packages/schema/src/builders/base.ts:10

Builder.output_


readonly type_: RegistryUnionType

Defined in: packages/schema/src/builders/base.ts:11

Builder.type_


protected validators_: Validator<TOut>[]

Defined in: packages/schema/src/builders/base.ts:13

Builder.validators_

get params(): RegistryUnionTypeParams<TOut, TType>

Defined in: packages/schema/src/builders/registry-union.ts:22

RegistryUnionTypeParams<TOut, TType>

Builder.params


get registry(): IRegistry<Node, TOut, TType>

Defined in: packages/schema/src/builders/registry-union.ts:18

IRegistry<Node, TOut, TType>

build(): RegistryUnionType<TOut, TType>

Defined in: packages/schema/src/builders/registry-union.ts:29

RegistryUnionType<TOut, TType>

Builder.build


clone(): this

Defined in: packages/schema/src/builders/base.ts:27

this

Builder.clone


oneOf(values, equal?): RegistryUnionBuilder<TOut, TType>

Defined in: packages/schema/src/builders/base.ts:42

TOut[]

(value, other) => boolean

RegistryUnionBuilder<TOut, TType>

Builder.oneOf


test(func, message?): this

Defined in: packages/schema/src/builders/base.ts:33

ValidatorFunction<TOut>

string

this

Builder.test