This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const buttonSizeUsage = BUTTON_SIZES_CONST_ENUM.MEDIUM; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const enum BUTTON_SIZES_CONST_ENUM { | |
SMALL = 'small', | |
MEDIUM = 'medium', | |
LARGE = 'large', | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{1: "FIRST", 2: "SECOND", FIRST: 1, SECOND: 2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export var PLACE; | |
(function (PLACE) { | |
PLACE[PLACE["FIRST"] = 1] = "FIRST"; | |
PLACE[PLACE["SECOND"] = 2] = "SECOND"; | |
})(PLACE || (PLACE = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export var PLACE; | |
(function (PLACE) { | |
PLACE[PLACE["FIRST"] = 1] = "FIRST"; | |
PLACE[PLACE["SECOND"] = 2] = "SECOND"; | |
})(PLACE || (PLACE = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum PLACE { | |
FIRST = 1, | |
SECOND = 2, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = {})); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export enum BUTTON_SIZES_ENUM { | |
SMALL = 'small', | |
MEDIUM = 'medium', | |
LARGE = 'large', | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type ButonSizeKey = keyof typeof BUTTON_SIZES; // "SMALL" | "MEDIUM" | "LARGE" | |
type ButonSizeValue = typeof BUTTON_SIZES[ButonSizeKey] // "small" | "medium" | "large" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
readonly SMALL: 'small', | |
readonly MEDIUM: 'medium', | |
readonly LARGE: 'large', | |
} |