typescript - Can't find inline index.d.ts of @uirouter/angularjs -


i'm using latest typescript version angularjs 1.6.4 , ui-router, using vs code.

currently i'm using @types folder type definitions.

there's problem typescript definitions file i've been having quite time - namely moment.js , when tried upgrading "angular-ui-router" new nested @uirouter/angularjs.

the problem seems typescript doesn't know @ "typings" field in package.json file of external libraries definitions file, in cases there such file e.g in moment.js , @uirouter/angularjs.

this tsconfig:

{     "compileroptions": {         "baseurl": "",         "module": "es6",         "noimplicitany": true,         "noimplicitreturns": true,         "removecomments": true,         "strictnullchecks": true,         "sourcemap": true,         "target": "es5",         "outdir": "junk_js_files",         "paths": {             "services": ["app/scripts/services/*"],             "inputdirectives": ["app/scripts/inputdirectivesmodule/*"],             "common": ["app/scripts/common/*"]         }     },     "include": [         "app/**/*.ts",         "definitelytyped/*"     ],     "exclude": [         "node_modules",         "**/*.spec.ts",         "dist"     ] } 

in both moment.js , @uirouter/angularjs can see there's field in package.json file stating typings (index.d.ts) file is, why typescript ignoring it?

i can't upgrade latest uirouter because of annoying bug, prevents me working newest definitions file.

how can "teach" typescript typings field , use index.d.ts provided 3rd party libraries?

thanks, avi.

whoever finds , has problem, here: https://github.com/microsoft/typescript/issues/17958


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -