You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?