TypeScript Version:
1.8.7
Code
tsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"declaration": true
},
"files": [
"main.ts",
"mytypes.ts"
]
}
main.ts
import {MyClassAlias} from './mytypes';
let a: MyClassAlias = new MyClassAlias();
mytypes.ts
export class MyClass {
public a: number;
}
export type MyClassAlias = MyClass;
Expected behavior:
Object created using alias type.
Actual behavior:
Compilation error:
main.ts(3,27): error TS2304: Cannot find name 'MyClassAlias'.
in vscode (0.10.11) syntax is marked as error as well:

but IntelliSense seems to work:

TypeScript Version:
1.8.7
Code
tsconfig.json
{ "compilerOptions": { "module": "commonjs", "target": "es6", "declaration": true }, "files": [ "main.ts", "mytypes.ts" ] }main.ts
mytypes.ts
Expected behavior:
Object created using alias type.
Actual behavior:
Compilation error:
in
vscode(0.10.11) syntax is marked as error as well:but IntelliSense seems to work: