TypeScript/tests/cases/compiler/shorthandPropertyAssignmentInES6Module.ts
2015-11-09 13:56:18 -08:00

16 lines
280 B
TypeScript

// @target: ES6
// @module: commonjs
// @filename: existingModule.ts
export var x = 1;
// @filename: test.ts
import {x} from './existingModule';
import {foo} from './missingModule';
declare function use(a: any): void;
const test = { x, foo };
use(x);
use(foo);