ScalarPredicate

source

Constructors

new ScalarPredicate<R, F extends string | number | symbol = keyof R>(type: ScalarPredicateType, field: F, value: string | R[F] | ElementType<R[F]> | ElementType<R[F]>): ScalarPredicatesource

Properties

readonlyfield: Fsource

readonlytype: ScalarPredicateTypesource

inherited from BasePredicate.type

readonlyvalue: string | R[F] | ElementType<R[F]>source

readonlystatictypeNameMap: Record<ScalarPredicateType, string>source

Methods

Instance methods

serialise(metadata: ReflectionMetadata): 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