UNPKG

702 BTypeScriptView Raw
1import { MetadataScanner } from '@nestjs/core/metadata-scanner';
2import { Observable } from 'rxjs';
3import { NestGateway } from './interfaces/nest-gateway.interface';
4export interface MessageMappingProperties {
5 message: any;
6 methodName: string;
7 callback: (...args: any[]) => Observable<any> | Promise<any> | any;
8}
9export declare class GatewayMetadataExplorer {
10 private readonly metadataScanner;
11 constructor(metadataScanner: MetadataScanner);
12 explore(instance: NestGateway): MessageMappingProperties[];
13 exploreMethodMetadata(instancePrototype: object, methodName: string): MessageMappingProperties;
14 scanForServerHooks(instance: NestGateway): IterableIterator<string>;
15}