Skip to content

Commit

Permalink
Remove const enums.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed May 29, 2024
1 parent 94de0a3 commit 624248e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/api-documenter/src/documenters/YamlDocumenter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ interface IYamlReferences {
uidTypeReferenceCounters: Map<string, number>;
}

const enum FlattenMode {
enum FlattenMode {
/** Include entries for nested namespaces and non-namespace children. */
NestedNamespacesAndChildren,
/** Include entries for nested namespaces only. */
Expand Down
2 changes: 1 addition & 1 deletion apps/api-documenter/src/nodes/CustomDocNodeKind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { DocTableRow } from './DocTableRow';
/**
* Identifies custom subclasses of {@link DocNode}.
*/
export const enum CustomDocNodeKind {
export enum CustomDocNodeKind {
EmphasisSpan = 'EmphasisSpan',
Heading = 'Heading',
NoteBox = 'NoteBox',
Expand Down
2 changes: 1 addition & 1 deletion apps/rundown/src/LauncherTypes.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
// See LICENSE in the project root for license information.

export const enum LauncherAction {
export enum LauncherAction {
Snapshot = 'snapshot',
Inspect = 'inspect'
}
Expand Down
2 changes: 1 addition & 1 deletion common/reviews/api/terminal.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export class Terminal implements ITerminal {
}

// @public
export const enum TerminalChunkKind {
export enum TerminalChunkKind {
Stderr = "E",
Stdout = "O"
}
Expand Down
2 changes: 1 addition & 1 deletion common/reviews/api/ts-command-line.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export class CommandLineChoiceParameter<TChoice extends string = string> extends
}

// @public
export const enum CommandLineConstants {
export enum CommandLineConstants {
TabCompletionActionName = "tab-complete"
}

Expand Down
2 changes: 1 addition & 1 deletion heft-plugins/heft-lint-plugin/src/Eslint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface IEslintTiming {
time: (key: string, fn: (...args: unknown[]) => void) => (...args: unknown[]) => void;
}

const enum EslintMessageSeverity {
enum EslintMessageSeverity {
warning = 1,
error = 2
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/rush-lib/src/logic/PackageJsonUpdaterTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { RushConfigurationProject } from '../api/RushConfigurationProject';
/**
* The type of SemVer range specifier that is prepended to the version
*/
export const enum SemVerStyle {
export enum SemVerStyle {
Exact = 'exact',
Caret = 'caret',
Tilde = 'tilde',
Expand Down
2 changes: 1 addition & 1 deletion libraries/rushell/src/AstNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import type { Token } from './Tokenizer';
import { TextRange } from './TextRange';

export const enum AstKind {
export enum AstKind {
None = 'None',
Script = 'Script',
AndIf = 'AndIf',
Expand Down
2 changes: 1 addition & 1 deletion libraries/terminal/src/ITerminalChunk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Specifies the kind of data represented by a {@link ITerminalChunk} object.
* @public
*/
export const enum TerminalChunkKind {
export enum TerminalChunkKind {
/**
* Indicates a `ITerminalChunk` object representing `stdout` console output.
*/
Expand Down
2 changes: 1 addition & 1 deletion libraries/ts-command-line/src/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @public
*/
export const enum CommandLineConstants {
export enum CommandLineConstants {
/**
* The name of the built-in action that serves suggestions for tab-completion
*/
Expand Down

0 comments on commit 624248e

Please sign in to comment.