ListPredicate

source

Constructors

new ListPredicate<R, F extends string | number | symbol = keyof R, T extends ListPredicateType = ListPredicateType>(type: T, field: F, value: PredicateValue<T, R[F]>[]): ListPredicatesource

Properties

readonlyfield: Fsource

readonlytype: Tsource

inherited from BasePredicate.type

readonlyvalue: PredicateValue<T, R[F]>[]source

readonlystatictypeNameMap: Record<ListPredicateType, 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