-
Notifications
You must be signed in to change notification settings - Fork 454
Open
Labels
Description
Summary
CookieListItem is missing properties such as domain and expires.
Expected vs. Actual Behavior
async function exampleForCookieStoreGet() {
const cookieItem = await cookieStore.get('test');
if (cookieItem) {
console.log(cookieItem.domain); // Property 'domain' does not exist on type 'CookieListItem'.
}
}According to MDN documentation, CookieListItem should be something like:
interface CookieListitem {
name: string;
value: string;
domain?: string | null;
expires?: DOMHighResTimeStamp | null;
partitioned?: boolean;
path?: string;
sameSite?: CookieSameSite;
secure?: boolean;
}Playground Link
Browser Support
- This API is supported in at least two major browser engines (not two Chromium-based browsers).
Have Tried The Latest Releases
- This issue applies to the latest release of TypeScript.
- This issue applies to the latest release of
@types/web.
Additional Context
No response