Skip to content

Commit

Permalink
remove const keyword when declaring enums (#525)
Browse files Browse the repository at this point in the history
  • Loading branch information
agubler authored Mar 19, 2018
1 parent 7278cce commit 706a283
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/calendar/DatePicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ import * as css from '../theme/calendar.m.css';
/**
* Enum for next/previous buttons
*/
export const enum Paging {
export enum Paging {
next = 'next',
previous = 'previous'
}

/**
* Enum for month or year controls
*/
export const enum Controls {
export enum Controls {
month = 'month',
year = 'year'
}
Expand Down
2 changes: 1 addition & 1 deletion src/checkbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface CheckboxProperties extends ThemedProperties, InputProperties, L
/**
* The type of UI to show for this Checkbox
*/
export const enum Mode {
export enum Mode {
normal = 'normal',
toggle = 'toggle'
}
Expand Down
2 changes: 1 addition & 1 deletion src/combobox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface ComboBoxProperties extends ThemedProperties, LabeledProperties
}

// Enum used when traversing items using arrow keys
export const enum Operation {
export enum Operation {
increase = 1,
decrease = -1
}
Expand Down
2 changes: 1 addition & 1 deletion src/common/util.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AriaPropertyObject } from './interfaces';

export const enum Keys {
export enum Keys {
Down = 40,
End = 35,
Enter = 13,
Expand Down
4 changes: 2 additions & 2 deletions src/slide-pane/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { customElement } from '@dojo/widget-core/decorators/customElement';
/**
* Enum for left / right alignment
*/
export const enum Align {
export enum Align {
bottom = 'bottom',
left = 'left',
right = 'right',
Expand Down Expand Up @@ -53,7 +53,7 @@ export interface SlidePaneProperties extends ThemedProperties, CustomAriaPropert
*/
const DEFAULT_WIDTH = 320;

const enum Plane {
enum Plane {
x,
y
}
Expand Down
2 changes: 1 addition & 1 deletion src/split-pane/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { customElement } from '@dojo/widget-core/decorators/customElement';
/**
* Direction of this SplitPane
*/
export const enum Direction {
export enum Direction {
column = 'column',
row = 'row'
}
Expand Down
2 changes: 1 addition & 1 deletion src/tab-controller/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { customElement } from '@dojo/widget-core/decorators/customElement';
/**
* Enum for tab button alignment
*/
export const enum Align {
export enum Align {
bottom = 'bottom',
left = 'left',
right = 'right',
Expand Down
2 changes: 1 addition & 1 deletion src/tooltip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface TooltipProperties extends ThemedProperties, CustomAriaPropertie
}

// Enum used to position the Tooltip
export const enum Orientation {
export enum Orientation {
bottom = 'bottom',
left = 'left',
right = 'right',
Expand Down

0 comments on commit 706a283

Please sign in to comment.