mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 11:09:30 +08:00
14 lines
433 B
Text
14 lines
433 B
Text
import type { Dict } from 'worktop/utils';
|
|
|
|
export interface Attributes {
|
|
maxage?: number;
|
|
expires?: Date;
|
|
samesite?: 'Lax' | 'Strict' | 'None';
|
|
secure?: boolean;
|
|
httponly?: boolean;
|
|
domain?: string;
|
|
path?: string;
|
|
}
|
|
|
|
export function parse(cookie: string): Attributes & Dict<string>;
|
|
export function stringify(name: string, value: string, options?: Omit<Attributes, 'expires'> & { expires?: Date | number | string }): string;
|