Skip to content

Commit 8498f63

Browse files
authored
Add jsdoc import type annotation in README.md
1 parent b7a62f3 commit 8498f63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,10 @@ When using external modules, you can dynamically import them by using `yield "so
126126
```js
127127
import { threaded } from "multithreading";
128128

129-
const getId = threaded(async function* () {
129+
const getId = threaded(function* () {
130+
/**
131+
* @type {import("uuid")}
132+
*/
130133
const { v4 } = yield "uuid"; // Import other package
131134

132135
return v4();

0 commit comments

Comments
 (0)