Files
tsgo/testdata/baselines/reference/submodule/compiler/declarationEmitComputedPropertyNameSymbol1.js

26 lines
455 B
TypeScript

//// [tests/cases/compiler/declarationEmitComputedPropertyNameSymbol1.ts] ////
//// [type.ts]
export namespace Foo {
export const sym = Symbol();
}
export type Type = { x?: { [Foo.sym]: 0 } };
//// [index.ts]
import { type Type } from "./type";
export const foo = { ...({} as Type) };
//// [type.d.ts]
export declare namespace Foo {
const sym: unique symbol;
}
export type Type = {
x?: {
[Foo.sym]: 0;
};
};