Skip to content

NullableBuilder

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

TOut

TWrapped extends Type<Value, TOut> & IExpressionValueType<TOut>

new NullableBuilder<TOut, TWrapped>(wrapped_): NullableBuilder<TOut, TWrapped>

Defined in: packages/schema/src/builders/nullable.ts:14

TWrapped

NullableBuilder<TOut, TWrapped>

Builder.constructor

readonly input_: Value

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

Builder.input_


readonly output_: TOut | null

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

Builder.output_


readonly type_: NullableType

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

Builder.type_


protected validators_: Validator<TOut | null>[]

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

Builder.validators_

get params(): NullableTypeParams<TOut, TWrapped>

Defined in: packages/schema/src/builders/nullable.ts:18

NullableTypeParams<TOut, TWrapped>

Builder.params

build(): NullableType<TOut, TWrapped>

Defined in: packages/schema/src/builders/nullable.ts:31

NullableType<TOut, TWrapped>

Builder.build


clone(): this

Defined in: packages/schema/src/builders/nullable.ts:25

this

Builder.clone


oneOf(values, equal?): NullableBuilder<TOut, TWrapped>

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

(TOut | null)[]

(value, other) => boolean

NullableBuilder<TOut, TWrapped>

Builder.oneOf


test(func, message?): this

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

ValidatorFunction<TOut | null>

string

this

Builder.test