Is Codesandbox supports the d.ts import? #6106
Answered
by
chenxizhang
chenxizhang
asked this question in
Q&A
-
In VS Code, if I defined a Global.d.ts in the project, and I can use all the types in anywhere without import them. This is super great. But it seems that not happen in Codesandbox, is there anything I missing?Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
chenxizhang
Sep 7, 2021
Replies: 3 comments
-
It works in VS Code |
Beta Was this translation helpful? Give feedback.
0 replies
-
my bad, I checked carefully into the tsconfig.json, since the default setting of "include" is "./src/**/*" , so I just need to move the d.ts files into this folder. It works great.
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chenxizhang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
my bad, I checked carefully into the tsconfig.json, since the default setting of "include" is "./src/**/*" , so I just need to move the d.ts files into this folder. It works great.