Trying to migrate from old tsd.json
to typings.json
. Previous my .d.ts
had:
declare var modname: modname.modname;
declare module modname {
export interface modname {
new (): modname;
}
export interface foo {
bar: string;
}
}
declare module "mod-name" {
export = modname;
}
Then due to errors I changed the first lines to:
declare var modname: modname.modname;
declare namespace modname {
But then got:
TS2665: Module augmentation cannot introduce new names in the top level scope.
Maybe I am meant to install the Typings differently? - I notice strange scaffolding being automatically added to my definition files, which are installed with:
typings install github:user/typ/mod-name/mod-name.d.ts --save