mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
462 B
TypeScript
26 lines
462 B
TypeScript
//// [tests/cases/compiler/exportVisibility.ts] ////
|
|
|
|
//// [exportVisibility.ts]
|
|
export class Foo {
|
|
}
|
|
|
|
export var foo = new Foo();
|
|
|
|
export function test(foo: Foo) {
|
|
return true;
|
|
}
|
|
|
|
|
|
//// [exportVisibility.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.foo = exports.Foo = void 0;
|
|
exports.test = test;
|
|
class Foo {
|
|
}
|
|
exports.Foo = Foo;
|
|
exports.foo = new Foo();
|
|
function test(foo) {
|
|
return true;
|
|
}
|