Skip to content

Commit

Permalink
structures(versioning): string enum
Browse files Browse the repository at this point in the history
  • Loading branch information
rumblefrog committed Nov 15, 2019
1 parent 454d984 commit ca0c4b0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/structures/versioning.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
const constants_1 = require("../constants");
var Platform;
(function (Platform) {
Platform[Platform["Linux"] = 0] = "Linux";
Platform[Platform["Windows"] = 1] = "Windows";
Platform[Platform["Mac"] = 2] = "Mac";
Platform[Platform["Unknown"] = 3] = "Unknown";
Platform["Linux"] = "linux";
Platform["Windows"] = "windows";
Platform["Mac"] = "mac";
Platform["Unknown"] = "unknown";
})(Platform = exports.Platform || (exports.Platform = {}));
function parsePlatform(plat) {
switch (plat) {
Expand Down
8 changes: 4 additions & 4 deletions src/structures/versioning.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { ENDPOINT } from '../constants';

export enum Platform {
Linux,
Windows,
Mac,
Unknown,
Linux = "linux",
Windows = "windows",
Mac = "mac",
Unknown = "unknown",
}

export function parsePlatform(plat: string): Platform {
Expand Down

0 comments on commit ca0c4b0

Please sign in to comment.