Is there a way to globally define a type in typescript? Interested in using bluebird instead of ES6 Promise -


i'm ts beginner. see if compile typescript code --target es6, knows promise type globally.

i want use bluebird instead, , have global promise type represented bluebird. how accomplish this?

specifically, want avoid importing bluebird everywhere promise<t> mentioned.

use typings

npm install typings typings install dt~bluebird --global --save 

make sure tsconfig.json , typings folder in same directory.


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -