mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
355 B
TypeScript
17 lines
355 B
TypeScript
//// [tests/cases/compiler/declarationEmitInvalidExport.ts] ////
|
|
|
|
//// [declarationEmitInvalidExport.ts]
|
|
if (false) {
|
|
export var myClass = 0;
|
|
}
|
|
export type MyClass = typeof myClass;
|
|
}
|
|
|
|
|
|
//// [declarationEmitInvalidExport.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
if (false) {
|
|
exports.myClass = 0;
|
|
}
|