mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
510 B
TypeScript
32 lines
510 B
TypeScript
//// [tests/cases/compiler/ambientModuleWithTemplateLiterals.ts] ////
|
|
|
|
//// [ambientModuleWithTemplateLiterals.ts]
|
|
declare namespace Foo {
|
|
enum Bar {
|
|
a = `1`,
|
|
b = '2',
|
|
c = '3'
|
|
}
|
|
|
|
export const a = 'string';
|
|
export const b = `template`;
|
|
|
|
export const c = Bar.a;
|
|
export const d = Bar['b'];
|
|
export const e = Bar[`c`];
|
|
}
|
|
|
|
Foo.a;
|
|
Foo.b;
|
|
Foo.c;
|
|
Foo.d;
|
|
Foo.e;
|
|
|
|
//// [ambientModuleWithTemplateLiterals.js]
|
|
"use strict";
|
|
Foo.a;
|
|
Foo.b;
|
|
Foo.c;
|
|
Foo.d;
|
|
Foo.e;
|