Skip to content

Commit

Permalink
fix: incomplete predicate (#56)
Browse files Browse the repository at this point in the history
Seems like an unintentional typo. I'm just came across this code while looking for cookie handling in Next, I haven't run into an issue and haven't used the package in my project. This was just something I noticed.
  • Loading branch information
eranhirsch authored Nov 17, 2023
1 parent 3ac4bc1 commit 26d06af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const isCookiesFromAppRouter = (
): cookieStore is AppRouterCookies => {
if (!cookieStore) return false;
return (
'getAll' &&
'getAll' in cookieStore &&
'set' in cookieStore &&
typeof cookieStore.getAll === 'function' &&
typeof cookieStore.set === 'function'
Expand Down

0 comments on commit 26d06af

Please sign in to comment.