Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
myty committed Aug 21, 2023
1 parent ef5c1f2 commit cd4b35c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ import "https://deno.land/x/stage3/promise-with-resolvers.ts";
### Usage

```ts
import "@myty/stage3/script/promise-with-resolvers"; // Node.js (commonjs)
import "@myty/stage3/esm/promise-with-resolvers"; // Node.js (module)
import "https://deno.land/x/stage3/promise-with-resolvers.ts"; // Deno

// Arrange
const resolvedValue = 5;
const { resolve, promise } = Promise.withResolvers<number>();
Expand Down

0 comments on commit cd4b35c

Please sign in to comment.