UNPKG

@takentrade/takentrade-libs

Version:
9 lines (8 loc) 548 B
import { TokenPayload } from '../interfaces'; /** * Custom decorator to extract user data from the request. * @param data Optional key of the TokenPayload to extract a specific property. * @param ctx Execution context to access the request. * @returns The user object or the specified property value. */ export declare const GetUser: (...dataOrPipes: (import("@nestjs/common").PipeTransform<any, any> | keyof TokenPayload | import("@nestjs/common").Type<import("@nestjs/common").PipeTransform<any, any>> | undefined)[]) => ParameterDecorator;