Skip to content

Commit

Permalink
Eliminate const enums.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed May 28, 2024
1 parent da4064d commit 2c45e65
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion playground/src/PlaygroundView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { CodeEditor, type ISyntaxMarker, type IStyledRange } from './CodeEditor'
import { DocNodeSyntaxStyler } from './SyntaxStyler/DocNodeSyntaxStyler';
import { SampleInputs } from './samples/SampleInputs';

export const enum Theme {
export enum Theme {
vs = 'vs'
}

Expand Down
4 changes: 2 additions & 2 deletions tsdoc/src/beta/DeclarationReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ export class DeclarationReference {
* Indicates the symbol table from which to resolve the next symbol component.
* @beta
*/
export const enum Navigation {
export enum Navigation {
Exports = '.',
Members = '#',
Locals = '~'
Expand Down Expand Up @@ -566,7 +566,7 @@ export class ComponentNavigation extends ComponentPathBase {
/**
* @beta
*/
export const enum Meaning {
export enum Meaning {
Class = 'class', // SymbolFlags.Class
Interface = 'interface', // SymbolFlags.Interface
TypeAlias = 'type', // SymbolFlags.TypeAlias
Expand Down
2 changes: 1 addition & 1 deletion tsdoc/src/nodes/DocNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { TSDocConfiguration } from '../configuration/TSDocConfiguration';
* Indicates the type of {@link DocNode}.
*
* @remarks
* When creating custom subclasses of `DocNode`, it's recommended to create your own const enum to identify them.
* When creating custom subclasses of `DocNode`, it's recommended to create your own enum to identify them.
* To avoid naming conflicts between projects, the enum value should be a string comprised of your full
* NPM package name, followed by a "#" symbol, followed by the class name (without the "Doc" prefix).
*/
Expand Down
2 changes: 1 addition & 1 deletion tsdoc/src/parser/ParagraphSplitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class ParagraphSplitter {
let currentParagraph: DocParagraph = new DocParagraph({ configuration: oldParagraph.configuration });
outputNodes.push(currentParagraph);

const enum SplitterState {
enum SplitterState {
Start,
AwaitingTrailer,
ReadingTrailer
Expand Down

0 comments on commit 2c45e65

Please sign in to comment.