You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2024. It is now read-only.
There upcoming feature in the upcoming Typesscript 2.0 which allow use node_modules/@types folder to store TypeScript definitions and there already exists porting efforts to that stratecy of deliverying TypeScript definitions. See https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0
Current tester not working with new definitions because it could not resolve definitions using ///<reference types="..." /> format.
Would be reasonable to make this work for this scenario too.
I make this work by modifying src/tsc/Tsc.ts file by including additional command line options --typeRoots . --types jquery. That's very dirty, and just to give proof of concept. Full fix should include additional parameter which to dt and some other changes probably should be required on TypeScript side.
Now more about the change:
Make root folder of DefintelyTyped as source folder for definitions --typeRoots .
Fix error in the latest TypeScript which gives following error
error TS2688: Cannot find type definition file for '.git'.
error TS2688: Cannot find type definition file for 'gsap'.
error TS2688: Cannot find type definition file for 'node_modules'.
error TS2688: Cannot find type definition file for 'scripts'.
error TS2688: Cannot find type definition file for 'swipe.js'.
if some dummy existing types module does not provided. That's why --types jquery
The text was updated successfully, but these errors were encountered:
There upcoming feature in the upcoming Typesscript 2.0 which allow use
node_modules/@types
folder to store TypeScript definitions and there already exists porting efforts to that stratecy of deliverying TypeScript definitions. See https://github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0Current tester not working with new definitions because it could not resolve definitions using
///<reference types="..." />
format.Would be reasonable to make this work for this scenario too.
I make this work by modifying
src/tsc/Tsc.ts
file by including additional command line options--typeRoots . --types jquery
. That's very dirty, and just to give proof of concept. Full fix should include additional parameter which to dt and some other changes probably should be required on TypeScript side.Now more about the change:
--typeRoots .
if some dummy existing types module does not provided. That's why
--types jquery
The text was updated successfully, but these errors were encountered: