@nestjs/websockets
Version:
WebSockets for NestJS: gateways with message handlers, guards, pipes and interceptors, on Socket.IO or ws.
6 lines (5 loc) • 567 B
TypeScript
import type { ParameterDecoratorOptions, PipeTransform, Type } from '@nestjs/common';
import 'reflect-metadata';
import { WsParamtype } from '../enums/ws-paramtype.enum.js';
export declare function createWsParamDecorator(paramtype: WsParamtype): (...pipes: (Type<PipeTransform> | PipeTransform)[]) => ParameterDecorator;
export declare const createPipesWsParamDecorator: (paramtype: WsParamtype) => (data?: any, optionsOrPipe?: ParameterDecoratorOptions | Type<PipeTransform> | PipeTransform, ...pipes: (Type<PipeTransform> | PipeTransform)[]) => ParameterDecorator;