Skip to content

cookieStore #47314

Closed
Closed
@mmkal

Description

@mmkal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions