ListPredicate
sourceConstructors
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
field: Fsource
type: Tsource
inherited from
BasePredicate.type
value: PredicateValue<T, R[F]>[]source
typeNameMap: Record<ListPredicateType, string>source
Methods
Instance methods
serialise(metadata: ReflectionMetadata): JsonValuesource
toString(): stringsource
Inherited methods
toJSON(): neversource
inherited from
BasePredicate.toJSON
applyFieldGuards<T>(target: AbstractCtor<T>, item: any, tracer: Tracer): Maybe<T>source
inherited from
BasePredicate.applyFieldGuards
validate<T extends ValidatableType<T>>(this: AbstractCtor<T> & CanHaveValidateHook<T>, item: any, tracer: Tracer = ...): Maybe<T>source
inherited from
BasePredicate.validate
withFields<T extends FieldDict>(fields: T): Validatable<MaterialisedType<T>> & Ctor<MaterialisedType<T>>source
inherited from
BasePredicate.withFields