We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656f040 commit 6a93d53Copy full SHA for 6a93d53
src/content/docs/workers/runtime-apis/nodejs/timers.mdx
@@ -18,7 +18,7 @@ and [`setImmediate`](https://nodejs.org/api/timers.html#setimmediatecallback-arg
18
import timers from "node:timers";
19
20
export default {
21
- async fetch() {
+ async fetch(): Promise<Response> {
22
console.log("first");
23
const { promise: promise1, resolve: resolve1 } = Promise.withResolvers();
24
const { promise: promise2, resolve: resolve2 } = Promise.withResolvers();
@@ -35,10 +35,8 @@ export default {
35
await Promise.all([promise1, promise2]);
36
37
return new Response("ok");
38
-
39
-}
40
41
+ }
+} satisfies ExportedHandler<Env>;
42
```
43
</TypeScriptExample>
44
0 commit comments