14 lines
323 B
TypeScript
14 lines
323 B
TypeScript
//// [topLevelExports.ts]
|
|
export var foo = 3;
|
|
|
|
function log(n:number) { return n;}
|
|
|
|
void log(foo).toString();
|
|
|
|
//// [topLevelExports.js]
|
|
define(["require", "exports"], function (require, exports) {
|
|
"use strict";
|
|
exports.foo = 3;
|
|
function log(n) { return n; }
|
|
void log(exports.foo).toString();
|
|
});
|