How to declare the types definitions .types.d.ts
in VSCode/Sublime Text
#50
darkred
started this conversation in
MPIV general
Replies: 1 comment 9 replies
-
I don't have a tsconfig though, that file is just automatically recognized as a part of the project so I have no idea how to replicate it, I don't even use TypeScript, it was just for fun. If you find the proper method, just open a PR. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Greetings @tophf
I'm trying to declare the types definitions in https://github.com/tophf/mpiv/blob/master/.types.d.ts .
The editors I use are latest VSCode and Sublime Text 3
(the former has TypeScript language support but does not include the TypeScript compiler,
tsc
--- the latter needs a package to offer support) .(Unfortunately I couldn't find any info in https://definitelytyped.org/directory/tools.html, nor anything related to "userscripts and .types.d.ts" in general).
As I see in this SO answer I need a
tsconfig.json
.Could you please share your
tsconfig.json
? (and maybe upload it in the repo?) And, should I do anything else in order for it to work at least in VSCode?Or, if you don't use these editors, could you offer some info on the editor you use?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions