Replies: 3 comments 9 replies
-
This might be a bit of a hack but can you do this in a separate file and just import that file instead? // @deno-types="npm:@types/react@18"
export * from "npm:react@18" |
Beta Was this translation helpful? Give feedback.
-
To use
Then optionally, you can configure your import mapping in a
Then, update your
That's it! You shouldn't need to use |
Beta Was this translation helpful? Give feedback.
-
I'm also running into issues with the Vite template (WebStorm not recognizing It still doesn't fix everything, but it at least helps with autocomplete. |
Beta Was this translation helpful? Give feedback.
-
Hi, in my project I have
deno.json
and my project contains some utilities for React.How can I properly add
@types/react
to whole my project?It's very inconvenient to do this:
...each time I import something from
react
.Is there some guide about how to properly add
@types/*
types for NPM-package?UPD, found the example of React with Deno but types is not working:
denoland/react-vite-ts-template#1
Beta Was this translation helpful? Give feedback.
All reactions