Skip to content

Commit

Permalink
Add jsdoc import type annotation in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
W4G1 authored Jan 8, 2024
1 parent b7a62f3 commit 8498f63
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ When using external modules, you can dynamically import them by using `yield "so
```js
import { threaded } from "multithreading";

const getId = threaded(async function* () {
const getId = threaded(function* () {
/**
* @type {import("uuid")}
*/
const { v4 } = yield "uuid"; // Import other package

return v4();
Expand Down

0 comments on commit 8498f63

Please sign in to comment.