next.js
6fd453d0 - Declare the async_hooks classes of the Node.js baseline inside a block

Commit
22 days ago
Declare the async_hooks classes of the Node.js baseline inside a block node-environment-baseline.ts has no imports or exports, so it is a script, and the `AsyncLocalStorage` and `AsyncResource` constants that the previous change to this file declared at its top level were global declarations. The root type check rejected them: `AsyncLocalStorage` is already declared as a global in server.d.ts. Restore the block that provides the global `AsyncLocalStorage` as it was, and register the two classes from a block of their own. Nothing changes at runtime.
Author
Committer
Parents
Loading