Replies: 2 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.
2 replies
-
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.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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