Skip to content

Instantly share code, notes, and snippets.

View przemyslawjanpietrzak's full-sized avatar

Przemyslaw Jan Beigert przemyslawjanpietrzak

View GitHub Profile
const buttonSizeUsage = BUTTON_SIZES_CONST_ENUM.MEDIUM;
export const enum BUTTON_SIZES_CONST_ENUM {
SMALL = 'small',
MEDIUM = 'medium',
LARGE = 'large',
}
{1: "FIRST", 2: "SECOND", FIRST: 1, SECOND: 2}
export var PLACE;
(function (PLACE) {
PLACE[PLACE["FIRST"] = 1] = "FIRST";
PLACE[PLACE["SECOND"] = 2] = "SECOND";
})(PLACE || (PLACE = {}));
export var PLACE;
(function (PLACE) {
PLACE[PLACE["FIRST"] = 1] = "FIRST";
PLACE[PLACE["SECOND"] = 2] = "SECOND";
})(PLACE || (PLACE = {}));
export enum PLACE {
FIRST = 1,
SECOND = 2,
}
export var BUTTON_SIZES_ENUM;
(function (BUTTON_SIZES_ENUM) {
BUTTON_SIZES_ENUM["SMALL"] = "small";
BUTTON_SIZES_ENUM["MEDIUM"] = "medium";
BUTTON_SIZES_ENUM["LARGE"] = "large";
})(BUTTON_SIZES_ENUM || (BUTTON_SIZES_ENUM = {}));
export enum BUTTON_SIZES_ENUM {
SMALL = 'small',
MEDIUM = 'medium',
LARGE = 'large',
}
type ButonSizeKey = keyof typeof BUTTON_SIZES; // "SMALL" | "MEDIUM" | "LARGE"
type ButonSizeValue = typeof BUTTON_SIZES[ButonSizeKey] // "small" | "medium" | "large"
{
readonly SMALL: 'small',
readonly MEDIUM: 'medium',
readonly LARGE: 'large',
}