UNPKG

@tdb/util

Version:
14 lines (13 loc) 428 B
import { ICookieAttributes, CookieValue, ICookieServerContext, CookieProperty } from './types'; export interface IServerCookie { key: string; value: CookieValue; options?: ICookieAttributes; } export declare class ServerCookie { cookies: IServerCookie[]; add(prop: CookieProperty<any>, value?: CookieValue): this; readonly header: string; write(ctx: ICookieServerContext): void; clear(): void; }