Is Codesandbox supports the d.ts import? #6106
-
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.
Replies: 3 comments
-
Beta Was this translation helpful? Give feedback.
-
It works in VS Code |
Beta Was this translation helpful? Give feedback.
-
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.
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.