UNPKG

jsfast

Version:

Fastjs(jsfast) is a useful, lightweight JavaScript library for any types of project.

14 lines (13 loc) 480 B
import type { FastjsModuleBase } from "../base/def"; import type { CookieOptions } from "./def"; export interface FastjsCookieAtom { construct: "FastjsCookie"; path?: string; domain?: string; } export interface FastjsCookieAPI { get(name: string): string | null; set(name: string, value: string, options?: CookieOptions): FastjsCookie; remove(name: string): FastjsCookie; } export type FastjsCookie = FastjsCookieAtom & FastjsCookieAPI & FastjsModuleBase;