Skip to content

Commit

Permalink
Add AsyncLocalStorage type to globals
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Oct 22, 2022
1 parent 3546bac commit b2651e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/next/server.d.ts
@@ -1,3 +1,9 @@
import type { AsyncLocalStorage as NodeAsyncLocalStorage } from 'async_hooks'

declare global {
var AsyncLocalStorage: typeof NodeAsyncLocalStorage
}

export { NextFetchEvent } from 'next/dist/server/web/spec-extension/fetch-event'
export { NextRequest } from 'next/dist/server/web/spec-extension/request'
export { NextResponse } from 'next/dist/server/web/spec-extension/response'
Expand Down

0 comments on commit b2651e3

Please sign in to comment.