-
Hi. I have a Hono project using TypeScript. I enabled nodejs_compat and using the API I get TypeScript warnings. Shouldn't those be inside the I have this tsconfig
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey! 👋 They should, but they aren't at the moment! 😅 We're working on a new automatic generation system for |
Beta Was this translation helpful? Give feedback.
Hey! 👋 They should, but they aren't at the moment! 😅 We're working on a new automatic generation system for
@cloudflare/workers-types
that will support auto-generatingnodejs_compat
types too. In the meantime, you'll need to install@types/[email protected]
in addition to@cloudflare/workers-types
. Note later versions of@types/node
are incompatible with@cloudflare/workers-types
, see cloudflare/workerd#1298 for much more information on this and other workarounds.