Skip to content

Commit 4c1fcba

Browse files
committed
Eliminate const enums.
1 parent c908cc8 commit 4c1fcba

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

playground/src/PlaygroundView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { CodeEditor, type ISyntaxMarker, type IStyledRange } from './CodeEditor'
1616
import { DocNodeSyntaxStyler } from './SyntaxStyler/DocNodeSyntaxStyler';
1717
import { SampleInputs } from './samples/SampleInputs';
1818

19-
export const enum Theme {
19+
export enum Theme {
2020
vs = 'vs'
2121
}
2222

tsdoc/src/beta/DeclarationReference.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export class DeclarationReference {
252252
* Indicates the symbol table from which to resolve the next symbol component.
253253
* @beta
254254
*/
255-
export const enum Navigation {
255+
export enum Navigation {
256256
Exports = '.',
257257
Members = '#',
258258
Locals = '~'
@@ -567,7 +567,7 @@ export class ComponentNavigation extends ComponentPathBase {
567567
/**
568568
* @beta
569569
*/
570-
export const enum Meaning {
570+
export enum Meaning {
571571
Class = 'class', // SymbolFlags.Class
572572
Interface = 'interface', // SymbolFlags.Interface
573573
TypeAlias = 'type', // SymbolFlags.TypeAlias

tsdoc/src/nodes/DocNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { TSDocConfiguration } from '../configuration/TSDocConfiguration';
77
* Indicates the type of {@link DocNode}.
88
*
99
* @remarks
10-
* When creating custom subclasses of `DocNode`, it's recommended to create your own const enum to identify them.
10+
* When creating custom subclasses of `DocNode`, it's recommended to create your own enum to identify them.
1111
* To avoid naming conflicts between projects, the enum value should be a string comprised of your full
1212
* NPM package name, followed by a "#" symbol, followed by the class name (without the "Doc" prefix).
1313
*/

tsdoc/src/parser/ParagraphSplitter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class ParagraphSplitter {
5656
let currentParagraph: DocParagraph = new DocParagraph({ configuration: oldParagraph.configuration });
5757
outputNodes.push(currentParagraph);
5858

59-
const enum SplitterState {
59+
enum SplitterState {
6060
Start,
6161
AwaitingTrailer,
6262
ReadingTrailer

0 commit comments

Comments
 (0)