@webilix/nestjs-helper
Version:
Helper library for NestJS
16 lines • 502 B
TypeScript
import { PipeTransform } from '@nestjs/common';
type Type = 'PHRASE' | 'ALL' | 'EACH';
export interface ISearchFilter {
readonly query: string;
readonly type: Type;
}
export declare class SearchFilterPipe implements PipeTransform {
private readonly options?;
constructor(options?: Partial<{
readonly title: string;
readonly optional: boolean;
}> | undefined);
transform(value: string): ISearchFilter | null;
}
export {};
//# sourceMappingURL=search.pipe.d.ts.map