SortPredicate
sourceConstructors
new SortPredicate<R>(field: keyof { [K in string | number | symbol as [R[K]] extends [Orderable] ? K : never]: any }, order: SortOrder): SortPredicatesource
Properties
field: keyof { [K in string | number | symbol as [R[K]] extends [Orderable] ? K : never]: any }source
order: SortOrdersource
orderNameMap: Record<SortOrder, string>source
Methods
Instance methods
toString(): stringsource
Inherited methods
applyFieldGuards<T>(target: AbstractCtor<T>, item: any, tracer: Tracer): Maybe<T>source
inherited from
ValidatableType.applyFieldGuards
validate<T extends ValidatableType<T>>(this: AbstractCtor<T> & CanHaveValidateHook<T>, item: any, tracer: Tracer = ...): Maybe<T>source
inherited from
ValidatableType.validate
withFields<T extends FieldDict>(fields: T): Validatable<MaterialisedType<T>> & Ctor<MaterialisedType<T>>source
inherited from
ValidatableType.withFields