Skip to content

Add CookieStore API types #61604

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Open
jnoordsij opened this issue Apr 22, 2025 · 1 comment
Open

Add CookieStore API types #61604

jnoordsij opened this issue Apr 22, 2025 · 1 comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Milestone

Comments

@jnoordsij
Copy link

jnoordsij commented Apr 22, 2025

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

@jakebailey
Copy link
Member

I'd think this would automatically filter in via https://github.com/microsoft/TypeScript-DOM-lib-generator once it really is out.

@RyanCavanaugh RyanCavanaugh added Bug A bug in TypeScript Help Wanted You can do this Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript labels Apr 24, 2025
@RyanCavanaugh RyanCavanaugh added this to the Backlog milestone Apr 24, 2025
No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
Bug A bug in TypeScript Domain: lib.d.ts The issue relates to the different libraries shipped with TypeScript Help Wanted You can do this
Projects
None yet
Development

No branches or pull requests

3 participants