TypeScript/tests/cases/compiler/declarationEmitAmdModuleNameDirective.ts
Wesley Wigham 43a482f03f
Emit amd-module and amd-dependency comments in emitter if printing declaration comments (#22740)
* Emit amd-module and amd-dependency comments in emitter if printing declaration comments

* Move code a bit

* Move again
2018-03-29 13:43:31 -07:00

9 lines
238 B
TypeScript

// @declaration: true
// @module: umd
// @filename: foo.ts
/// <amd-module name="name_of_foo"/>
export const foo = 1;
// @filename: bar.ts
/// <amd-dependency name="name_of_foo" path="./foo" />
import {foo} from './foo';
void foo;