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
Post a Comment