Skip to content

Commit 388f529

Browse files
committed
fix(node): add named exports for AsyncLocalStorage and AsyncResource
1 parent dee2ddd commit 388f529

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/runtime/node/async_hooks/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
// https://nodejs.org/api/events.html
22
import type asyncHooks from "node:async_hooks";
3+
34
import { AsyncLocalStorage } from "./_async-local-storage";
45
import { AsyncResource } from "./_async-resource";
56

7+
export { AsyncLocalStorage } from "./_async-local-storage";
8+
export { AsyncResource } from "./_async-resource";
9+
610
import * as asyncHook from "./_async-hook";
711

812
export * from "./_async-hook";

0 commit comments

Comments
 (0)