Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CookieStore

import type { CookieStore } from "https://raw.githubusercontent.com/worker-tools/signed-cookie-store/master/index.ts";

A verbatim TypeScript translation of the interfaces defined in the WICG Cookie Store API working draft.

interface CookieStore extends EventTarget {
delete(name: string): Promise<void>;
delete(options: CookieStoreDeleteOptions): Promise<void>;
get(name?: string): Promise<CookieListItem | null>;
get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>;
getAll(name?: string): Promise<CookieList>;
getAll(options?: CookieStoreGetOptions): Promise<CookieList>;
set(name: string, value: string): Promise<void>;
set(options: CookieInit): Promise<void>;
}

§Extends

§
EventTarget
[src]

§Methods

§
delete(name: string): Promise<void>
[src]
§
delete(options: CookieStoreDeleteOptions): Promise<void>
[src]
§
get(name?: string): Promise<CookieListItem | null>
[src]
§
get(options?: CookieStoreGetOptions): Promise<CookieListItem | null>
[src]
§
getAll(name?: string): Promise<CookieList>
[src]
§
getAll(options?: CookieStoreGetOptions): Promise<CookieList>
[src]
§
set(name: string, value: string): Promise<void>
[src]
§
set(options: CookieInit): Promise<void>
[src]