Skip to content

Add CookieStore API types #61604

Open
Open
@jnoordsij

Description

@jnoordsij

⚙ Compilation target

ESNext

⚙ Library

["esnext", "dom", "dom.iterable"]

Missing / Incorrect Definition

global cookieStore

Sample Code

await cookieStore.set({ 
  name: "foo", 
  value: "bar", 
});

const foo = await cookieStore.get("foo");

Documentation Link

https://developer.mozilla.org/en-US/docs/Web/API/CookieStore

Further notes

This is #47314 re-opened, given that Safari has released support and Firefox added Nightly support, with stable support expected to follow soon.

The types provided per #47314 (comment) might serve as an inspiration to start with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions