Skip to content

Commit

Permalink
fix(ts): Cookies -> NextCookies (#41491)
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Oct 18, 2022
1 parent df0e61b commit a367989
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/next/client/components/headers.ts
Expand Up @@ -17,7 +17,7 @@ function staticGenerationBailout(reason: string) {
}
}

export function headers(): Headers {
export function headers() {
staticGenerationBailout('headers')
const requestStore =
requestAsyncStorage && 'getStore' in requestAsyncStorage
Expand Down
4 changes: 2 additions & 2 deletions packages/next/client/components/request-async-storage.ts
@@ -1,9 +1,9 @@
import type { AsyncLocalStorage } from 'async_hooks'
import { Cookies } from '../../server/web/spec-extension/cookies'
import type { NextCookies } from '../../server/web/spec-extension/cookies'

export interface RequestStore {
headers: Headers
cookies: Cookies
cookies: NextCookies
previewData: any
}

Expand Down

0 comments on commit a367989

Please sign in to comment.