mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
765 B
TypeScript
32 lines
765 B
TypeScript
//// [tests/cases/compiler/declarationEmitMergedAliasWithConst.ts] ////
|
|
|
|
//// [declarationEmitMergedAliasWithConst.ts]
|
|
export const Color = {
|
|
Red: "Red",
|
|
Green: "Green",
|
|
Blue: "Blue"
|
|
} as const
|
|
|
|
export type Color = typeof Color
|
|
export type Colors = Color[keyof Color]
|
|
|
|
//// [declarationEmitMergedAliasWithConst.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Color = void 0;
|
|
exports.Color = {
|
|
Red: "Red",
|
|
Green: "Green",
|
|
Blue: "Blue"
|
|
};
|
|
|
|
|
|
//// [declarationEmitMergedAliasWithConst.d.ts]
|
|
export declare const Color: {
|
|
readonly Red: "Red";
|
|
readonly Green: "Green";
|
|
readonly Blue: "Blue";
|
|
};
|
|
export type Color = typeof Color;
|
|
export type Colors = Color[keyof Color];
|