UnaryPredicate

source

Constructors

new UnaryPredicate<R, F extends string | number | symbol = keyof R>(type: IsNull, field: F): UnaryPredicatesource

Properties

readonlyfield: Fsource

readonlytype: IsNullsource

inherited from BasePredicate.type

readonlystatictypeNameMap: Record<IsNull, string>source

Methods

Instance methods

serialise(): JsonValuesource

toString(): stringsource

Inherited methods

toJSON(): neversource

inherited from BasePredicate.toJSON

staticapplyFieldGuards<T>(target: AbstractCtor<T>, item: any, tracer: Tracer): Maybe<T>source

inherited from BasePredicate.applyFieldGuards

staticvalidate<T extends ValidatableType<T>>(this: AbstractCtor<T> & CanHaveValidateHook<T>, item: any, tracer: Tracer = ...): Maybe<T>source

inherited from BasePredicate.validate

staticwithFields<T extends FieldDict>(fields: T): Validatable<MaterialisedType<T>> & Ctor<MaterialisedType<T>>source

inherited from BasePredicate.withFields