@webilix/nestjs-helper
Version:
Helper library for NestJS
17 lines • 510 B
TypeScript
import { PipeTransform } from '@nestjs/common';
type Type = 'ASC' | 'DESC';
export interface IOrder {
readonly key: string;
readonly type: Type;
}
export declare class OrderPipe implements PipeTransform {
private readonly keys;
private readonly options?;
constructor(keys: string[], options?: Partial<{
readonly title: string;
readonly optional: boolean;
}> | undefined);
transform(value: string): IOrder | null;
}
export {};
//# sourceMappingURL=order.pipe.d.ts.map