diff options
Diffstat (limited to 'cli/bench/testdata/npm/hono/dist/utils/cookie.d.ts')
-rw-r--r-- | cli/bench/testdata/npm/hono/dist/utils/cookie.d.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/bench/testdata/npm/hono/dist/utils/cookie.d.ts b/cli/bench/testdata/npm/hono/dist/utils/cookie.d.ts new file mode 100644 index 000000000..d467efde5 --- /dev/null +++ b/cli/bench/testdata/npm/hono/dist/utils/cookie.d.ts @@ -0,0 +1,13 @@ +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; |