Open
Description
⚙ 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.