@nestjs/core
Version:
Nest - modern, fast, powerful node.js web framework (@core)
24 lines (23 loc) • 1.08 kB
TypeScript
import { PipeTransform, WebSocketAdapter, ExceptionFilter, NestInterceptor, CanActivate } from '@nestjs/common';
import { ConfigurationProvider } from '@nestjs/common/interfaces/configuration-provider.interface';
export declare class ApplicationConfig implements ConfigurationProvider {
private ioAdapter;
private globalPipes;
private globalFilters;
private globalInterceptors;
private globalGuards;
private globalPrefix;
constructor(ioAdapter?: WebSocketAdapter | null);
setGlobalPrefix(prefix: string): void;
getGlobalPrefix(): string;
setIoAdapter(ioAdapter: WebSocketAdapter): void;
getIoAdapter(): WebSocketAdapter;
useGlobalPipes(...pipes: PipeTransform<any>[]): void;
getGlobalFilters(): ExceptionFilter[];
useGlobalFilters(...filters: ExceptionFilter[]): void;
getGlobalPipes(): PipeTransform<any>[];
getGlobalInterceptors(): NestInterceptor[];
useGlobalInterceptors(...interceptors: NestInterceptor[]): void;
getGlobalGuards(): CanActivate[];
useGlobalGuards(...guards: CanActivate[]): void;
}