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

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

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -