From 3a59d865333a2121316fd1d4b2f937a931847022 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Sun, 27 Oct 2024 18:37:17 +0800 Subject: [PATCH] fix(utils/cookie): partitioned typo in CookieOptions (#3566) --- src/utils/cookie.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/cookie.ts b/src/utils/cookie.ts index ab3e7098..5163246d 100644 --- a/src/utils/cookie.ts +++ b/src/utils/cookie.ts @@ -8,9 +8,9 @@ import { decodeURIComponent_ } from './url' export type Cookie = Record export type SignedCookie = Record -type PartitionCookieConstraint = - | { partition: true; secure: true } - | { partition?: boolean; secure?: boolean } // reset to default +type PartitionedCookieConstraint = + | { partitioned: true; secure: true } + | { partitioned?: boolean; secure?: boolean } // reset to default type SecureCookieConstraint = { secure: true } type HostCookieConstraint = { secure: true; path: '/'; domain?: undefined } @@ -25,7 +25,7 @@ export type CookieOptions = { sameSite?: 'Strict' | 'Lax' | 'None' | 'strict' | 'lax' | 'none' partitioned?: boolean prefix?: CookiePrefixOptions -} & PartitionCookieConstraint +} & PartitionedCookieConstraint export type CookiePrefixOptions = 'host' | 'secure' export type CookieConstraint = Name extends `__Secure-${string}`