Reputation: 11
I have been converting an existing Javascript application to Typescript. I started with the DataController, one of the most used classes in the app. I added it to my tsd.d.ts file and added a reference tag at the top, but I do not get autocompletion in the existing Javascript file where the DataController is instantiated.
Am I doing something wrong, or does Typescript only provide autocompletion in other Typescript files?
I am using VSCode.
Upvotes: 1
Views: 708
Reputation: 275987
does Typescript only provide autocompletion in other Typescript files?
Yes
Upvotes: 2