UNPKG

@webilix/nestjs-helper

Version:

Helper library for NestJS

12 lines 436 B
import { PipeTransform } from '@nestjs/common'; export declare class EnumPipe<T> implements PipeTransform { private readonly title; private readonly list; private readonly options?; constructor(title: string, list: T[], options?: Partial<{ readonly optional: boolean; readonly callback: (item: T) => any; }> | undefined); transform(value: any): T | null; } //# sourceMappingURL=enum.pipe.d.ts.map