Skip to content

Commit

Permalink
const enums FTW
Browse files Browse the repository at this point in the history
  • Loading branch information
leeoniya committed Nov 21, 2020
1 parent 159ee3a commit 4dd7983
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dist/uPlot.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export namespace Range {

export type Function = (self: uPlot, initMin: number, initMax: number, scaleKey: string) => MinMax;

export enum SoftMode {
export const enum SoftMode {
Off = 0,
Always = 1,
Near = 2,
Expand Down Expand Up @@ -371,7 +371,7 @@ export namespace Scale {

export type Range = Range.MinMax | Range.Function | Range.Config;

export enum Distr {
export const enum Distr {
Linear = 1,
Ordinal = 2,
Logarithmic = 3,
Expand Down Expand Up @@ -454,7 +454,7 @@ export namespace Series {

export type FillTo = number | ((self: uPlot, seriesIdx: number, dataMin: number, dataMax: number) => number);

export enum Sorted {
export const enum Sorted {
Unsorted = 0,
Ascending = 1,
Descending = -1,
Expand Down Expand Up @@ -542,14 +542,14 @@ export namespace Axis {

export type Values = ((self: uPlot, splits: number[], axisIdx: number, foundSpace: number, foundIncr: number) => (string | number | null)[]) | (string | number | null)[][] | string;

export enum Side {
export const enum Side {
Top = 0,
Right = 1,
Bottom = 2,
Left = 3,
}

export enum Align {
export const enum Align {
Left = 1,
Right = 2,
}
Expand Down

0 comments on commit 4dd7983

Please sign in to comment.