UNPKG

@devcycle/nestjs-server-sdk

Version:

The DevCycle NestJS Server SDK used for feature management.

12 lines (11 loc) 582 B
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common'; import { DevCycleClient } from '@devcycle/nodejs-server-sdk'; import { DevCycleModuleOptions } from './DevCycleModuleOptions'; import { ClsService } from 'nestjs-cls'; export declare class RequestInterceptor implements NestInterceptor { private client; private options; private readonly cls; constructor(client: DevCycleClient, options: DevCycleModuleOptions, cls: ClsService); intercept(context: ExecutionContext, next: CallHandler): Promise<ReturnType<CallHandler['handle']>>; }