I have two classes declared in two separate files.
a.ts
export class AClass {
public constructor () {
console.log('AClass');
}
}
b.ts
export class BClass {
public constructor () {
console.log('BClass');
}
}
I want to merge them in one module. How I can realise it?
///<reference path='a.ts' />
///<reference path='b.ts' />
module Common {
export class A extends AClass {}
export class B extends BClass {}
}
says:
Cannot find name 'AClass'.
and
Cannot find name 'BClass'.
I can import classes
import AClass = require('a');
import BClass = require('b');
module Common {
}
But how I can correctly export them?
Cannot find any information in documentation. Please, tell me the best way to realise declarations in one module? Thank you in advance