Skip to content

Commit

Permalink
fix(node): add named exports for AsyncLocalStorage and AsyncResource
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Aug 7, 2023
1 parent dee2ddd commit 388f529
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/node/async_hooks/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
// https://nodejs.org/api/events.html
import type asyncHooks from "node:async_hooks";

import { AsyncLocalStorage } from "./_async-local-storage";
import { AsyncResource } from "./_async-resource";

export { AsyncLocalStorage } from "./_async-local-storage";
export { AsyncResource } from "./_async-resource";

import * as asyncHook from "./_async-hook";

Check failure on line 10 in src/runtime/node/async_hooks/index.ts

View workflow job for this annotation

GitHub Actions / ci

Import in body of module; reorder to top

export * from "./_async-hook";
Expand Down

0 comments on commit 388f529

Please sign in to comment.