I need to migrate step by step some large project from js to typeScript.
I rewrite on of the files in ts and i want to specify that other files at this moment can co
For an external module with no exposed types and any values:
declare module 'Foo' {
var x: any;
export = x;
}
This won't let you write foo.cls
, though.
If you're stubbing out individual classes, you can write:
declare module 'Foo' {
// The type side
export type cls = any;
// The value side
export var cls: any;
}