4 ms·
If you don't have time to write a type definition file, there's always the fallback to any type. (I tend to start with any-typed things, see any as a TODO marke
by WorldMaker 11y ago
If you don't have time to write a type definition file, there's always the fallback to any type. (I tend to start with any-typed things, see any as a TODO marker, and then fill in definitions as I have time, interest, or need.)
declare var SomeGlobal: any
declare module 'some-node-module' { declare var m: any; export = m }
Also, hopefully more npm package maintainers will start to add typings directly now that TypeScript searches node_modules.