Closed
Description
lib Update Request
The cookieStore API
Configuration Check
My compilation target is esnext
and my lib is ["dom", "dom.iterable", "esnext"]
.
Missing / Incorrect Definition
cookieStore
: https://developer.mozilla.org/en-US/docs/Web/API/CookieStore
Sample Code
From https://davidwalsh.name/cookiestore
await cookieStore.set({
name: "dw-test",
value: 1,
domain: 'davidwalsh.name',
// Very far in the future!
expires: Date.now() + Date.now()
});
const testCookie = await cookieStore.get('dw-test');
Documentation Link
https://developer.mozilla.org/en-US/docs/Web/API/CookieStore
Note: I'm a little confused by DOM lib generator repo. Should I be creating that issue there? It also mentions that it needs to be implemented in two major engines, and maybe Chromium counts as one? I'd have thought it'd make sense to allow including it explicitly via lib
somehow though.
FireFox implementation tracking issue
Safari implementation tracking issue