@nestjs/common/interfaces#PipeTransform TypeScript Examples

The following examples show how to use @nestjs/common/interfaces#PipeTransform. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: external-context-creator.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
createPipesFn(pipes: PipeTransform[], paramsOptions: (ParamProperties & {
        metatype?: unknown;
    })[]): (args: unknown[], ...params: unknown[]) => Promise<void>;
Example #2
Source File: external-context-creator.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
getParamValue<T>(value: T, { metatype, type, data }: {
        metatype: any;
        type: any;
        data: any;
    }, pipes: PipeTransform[]): Promise<any>;
Example #3
Source File: pipes-consumer.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
apply<TInput = unknown>(value: TInput, { metatype, type, data }: ArgumentMetadata, pipes: PipeTransform[]): Promise<TInput>;
Example #4
Source File: pipes-consumer.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
applyPipes<TInput = unknown>(value: TInput, { metatype, type, data }: {
        metatype: any;
        type?: any;
        data?: any;
    }, transforms: PipeTransform[]): Promise<TInput>;
Example #5
Source File: pipes-context-creator.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
create(instance: Controller, callback: (...args: unknown[]) => unknown, moduleKey: string, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): PipeTransform[];
Example #6
Source File: pipes-context-creator.d.ts    From nest-jaeger with MIT License 5 votes vote down vote up
getPipeInstance(pipe: Function | PipeTransform, contextId?: import("../injector/instance-wrapper").ContextId, inquirerId?: string): PipeTransform | null;