Skip to content

Commit

Permalink
🤖 Merge PR DefinitelyTyped#69155 [@types/cookie-session] Add `partiti…
Browse files Browse the repository at this point in the history
…oned` property to `CookieSessionOptions` by @codershiba
  • Loading branch information
codershiba authored Apr 17, 2024
1 parent 80f7e6b commit 8bcb363
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions types/cookie-session/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ declare namespace CookieSessionInterfaces {
* a boolean indicating whether to overwrite previously set cookies of the same name (true by default). If this is true, all cookies set during the same request with the same name (regardless of path or domain) are filtered out of the Set-Cookie header when setting this cookie.
*/
overwrite?: boolean | undefined;

/**
* a boolean indicating whether to partition the cookie in Chrome for the [CHIPS Update](https://developers.google.com/privacy-sandbox/3pcd/chips) (`false` by default). If this is true, Cookies from embedded sites will be partitioned and only readable from the same top
* level site from which it was created.
*/
partitioned?: boolean | undefined;
}

interface CookieSessionObject {
Expand Down

0 comments on commit 8bcb363

Please sign in to comment.