UNPKG

nextjs-cookie

Version:
20 lines (19 loc) 576 B
/// <reference types="node" /> import { CookieSerializeOptions } from 'cookie'; import { IncomingMessage, ServerResponse } from "http"; export interface OptionsType extends CookieSerializeOptions { res?: ServerResponse; req?: IncomingMessage & { cookies?: { [key: string]: string; } | Partial<{ [key: string]: string; }>; }; } export type TmpCookiesObj = { [key: string]: string; } | Partial<{ [key: string]: string; }>; export type CookieValueTypes = string | boolean | undefined | null;