1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 18:17:48 -05:00
denoland-deno/cli/bench/testdata/npm/hono/dist/utils/cookie.d.ts
2022-08-19 15:54:54 +05:30

13 lines
435 B
TypeScript

export declare type Cookie = Record<string, string>;
export declare type CookieOptions = {
domain?: string;
expires?: Date;
httpOnly?: boolean;
maxAge?: number;
path?: string;
secure?: boolean;
signed?: boolean;
sameSite?: 'Strict' | 'Lax' | 'None';
};
export declare const parse: (cookie: string) => Cookie;
export declare const serialize: (name: string, value: string, opt?: CookieOptions) => string;