As a newcomer, I'm hoping this issue is straight forward.
I am currently utilizing the angular2-webpack-starter found on GitHub.
Based on the mongoose documentation, it appears that including their JavaScript file allows for accessing a global variable related to mongoose.
Although using declare var mongoose : any;
works, I am interested in obtaining typings for mongoose. However, I am unsure of how to add them.
After running npm install @types/mongoose -S
, I can locate the file node_modules/mongoose/index.d.ts
. How can I specify to TypeScript that the variable mongoose
should adhere to the types outlined in that file?
Your assistance is greatly appreciated in advance.