Convert const enums

This commit is contained in:
Matt Bierner
2025-08-06 11:47:45 -07:00
parent 12a275ffe7
commit bd031dafbc
4 changed files with 4 additions and 6 deletions

View File

@@ -33,7 +33,6 @@ var __importStar = (this && this.__importStar) || (function () {
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.EntryKind = void 0;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
@@ -247,5 +246,5 @@ var EntryKind;
EntryKind[EntryKind["StringLiteral"] = 2] = "StringLiteral";
EntryKind[EntryKind["SearchedLocalFoundProperty"] = 3] = "SearchedLocalFoundProperty";
EntryKind[EntryKind["SearchedPropertyFoundLocal"] = 4] = "SearchedPropertyFoundLocal";
})(EntryKind || (exports.EntryKind = EntryKind = {}));
})(EntryKind || (EntryKind = {}));
//# sourceMappingURL=propertyInitOrderChecker.js.map

View File

@@ -272,7 +272,7 @@ type Definition =
| { readonly type: DefinitionKind.TripleSlashReference; readonly reference: ts.FileReference; readonly file: ts.SourceFile };
/** @internal */
export const enum EntryKind {
enum EntryKind {
Span,
Node,
StringLiteral,

View File

@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShakeLevel = void 0;
exports.toStringShakeLevel = toStringShakeLevel;
exports.shake = shake;
/*---------------------------------------------------------------------------------------------
@@ -18,7 +17,7 @@ var ShakeLevel;
ShakeLevel[ShakeLevel["Files"] = 0] = "Files";
ShakeLevel[ShakeLevel["InnerFile"] = 1] = "InnerFile";
ShakeLevel[ShakeLevel["ClassMembers"] = 2] = "ClassMembers";
})(ShakeLevel || (exports.ShakeLevel = ShakeLevel = {}));
})(ShakeLevel || (ShakeLevel = {}));
function toStringShakeLevel(shakeLevel) {
switch (shakeLevel) {
case ShakeLevel.Files:

View File

@@ -9,7 +9,7 @@ import type * as ts from 'typescript';
const TYPESCRIPT_LIB_FOLDER = path.dirname(require.resolve('typescript/lib/lib.d.ts'));
export const enum ShakeLevel {
enum ShakeLevel {
Files = 0,
InnerFile = 1,
ClassMembers = 2