Closed
Description
TypeScript Version: 1.8.9
Expected behavior:
TS should be aware of require
& Promise
Actual behavior:
TS errors appear for require & Promise.
var something = require('something'); // <-- Cannot find name 'require'
Promise<any> { // <-- Cannot find name 'Promise'
I'm able to work around the require
issue by simply declaring a custom typing for it, but not with Promise. I'm wondering if these should be more of a default part of TypeScript?
declare var require:any;