UNPKG

949 BTypeScriptView Raw
1import { PipeTransform, Type } from '@nestjs/common';
2import 'reflect-metadata';
3/**
4 * Resolver method parameter decorator. Extracts the `Context`
5 * object from the underlying platform and populates the decorated
6 * parameter with the value of `Context`.
7 */
8export declare function Context(): ParameterDecorator;
9/**
10 * Resolver method parameter decorator. Extracts the `Context`
11 * object from the underlying platform and populates the decorated
12 * parameter with the value of `Context`.
13 */
14export declare function Context(...pipes: (Type<PipeTransform> | PipeTransform)[]): ParameterDecorator;
15/**
16 * Resolver method parameter decorator. Extracts the `Context`
17 * object from the underlying platform and populates the decorated
18 * parameter with the value of `Context`.
19 */
20export declare function Context(property: string, ...pipes: (Type<PipeTransform> | PipeTransform)[]): ParameterDecorator;
21//# sourceMappingURL=context.decorator.d.ts.map
\No newline at end of file