UNPKG

nest-cookies

Version:

A module to work with setting and reading cookies in NestJS

14 lines (13 loc) 557 B
import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common'; import { Observable } from 'rxjs'; import { Cookie, NestCookieRequest } from './cookie.interface'; export declare class CookiesInterceptor implements NestInterceptor { intercept(context: ExecutionContext, next: CallHandler): Observable<any>; parseCookie(cookie: Cookie): string; getRequestResponse(context: ExecutionContext): { req: NestCookieRequest<unknown>; res: { header: (key: string, value: string[]) => void; }; }; }