File: declarationEmitSpreadStringlyKeyedEnum.js

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (53 lines) | stat: -rw-r--r-- 1,836 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//// [declarationEmitSpreadStringlyKeyedEnum.ts]
enum AgeGroups { "0-17" , "18-22" , "23-27" , "28-34" , "35-44" , "45-59" , "60-150" }
export const SpotifyAgeGroupEnum = { ...AgeGroups };

//// [declarationEmitSpreadStringlyKeyedEnum.js]
"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SpotifyAgeGroupEnum = void 0;
var AgeGroups;
(function (AgeGroups) {
    AgeGroups[AgeGroups["0-17"] = 0] = "0-17";
    AgeGroups[AgeGroups["18-22"] = 1] = "18-22";
    AgeGroups[AgeGroups["23-27"] = 2] = "23-27";
    AgeGroups[AgeGroups["28-34"] = 3] = "28-34";
    AgeGroups[AgeGroups["35-44"] = 4] = "35-44";
    AgeGroups[AgeGroups["45-59"] = 5] = "45-59";
    AgeGroups[AgeGroups["60-150"] = 6] = "60-150";
})(AgeGroups || (AgeGroups = {}));
exports.SpotifyAgeGroupEnum = __assign({}, AgeGroups);


//// [declarationEmitSpreadStringlyKeyedEnum.d.ts]
declare enum AgeGroups {
    "0-17" = 0,
    "18-22" = 1,
    "23-27" = 2,
    "28-34" = 3,
    "35-44" = 4,
    "45-59" = 5,
    "60-150" = 6
}
export declare const SpotifyAgeGroupEnum: {
    [x: number]: string;
    "0-17": (typeof AgeGroups)["0-17"];
    "18-22": (typeof AgeGroups)["18-22"];
    "23-27": (typeof AgeGroups)["23-27"];
    "28-34": (typeof AgeGroups)["28-34"];
    "35-44": (typeof AgeGroups)["35-44"];
    "45-59": (typeof AgeGroups)["45-59"];
    "60-150": (typeof AgeGroups)["60-150"];
};
export {};