See description

Reverted ToastVariant back to an enum internally. Still exposed to player as just possible strings.
Changed all 1-line documentation comments to actually be 1-line. Moved some because they were not providing documentation for the thing they were trying to.
This commit is contained in:
Snarling
2022-10-04 06:40:10 -04:00
parent 50f14b4f58
commit aa80cf6451
109 changed files with 400 additions and 1096 deletions
+4 -12
View File
@@ -1,21 +1,13 @@
/**
* Represents the possible configuration values that can be provided when creating the progress bar text.
*/
/** Represents the possible configuration values that can be provided when creating the progress bar text. */
interface IProgressBarConfiguration {
/**
* Current progress, taken as a decimal (i.e. '0.6' to represent '60%')
*/
/** Current progress, taken as a decimal (i.e. '0.6' to represent '60%') */
progress?: number;
/**
* Total number of ticks in progress bar. Preferably a factor of 100.
*/
/** Total number of ticks in progress bar. Preferably a factor of 100. */
totalTicks?: number;
}
/**
* Represents concrete configuration values when creating the progress bar text.
*/
/** Represents concrete configuration values when creating the progress bar text. */
interface IProgressBarConfigurationMaterialized extends IProgressBarConfiguration {
progress: number;
totalTicks: number;
+1 -3
View File
@@ -1,6 +1,4 @@
/**
* Returns a MM/DD HH:MM timestamp for the current time
*/
/** Returns a MM/DD HH:MM timestamp for the current time */
export function getTimestamp(): string {
const d: Date = new Date();
// A negative slice value takes from the end of the string rather than the beginning.
+2 -6
View File
@@ -1,6 +1,4 @@
/**
* Keyboard key codes as returned by event.key
*/
/** Keyboard key codes as returned by event.key */
export enum KEY {
//SHIFT: 16, // Check by `&& event.shiftKey`
//CTRL: 17, // Check by `&& event.ctrlKey`
@@ -72,9 +70,7 @@ export enum KEY {
Z = "z",
}
/**
* Keyboard key codes as returned by event.code
*/
/** Keyboard key codes as returned by event.code */
export enum KEYCODE {
//SHIFT: 16, // Check by `&& event.shiftKey`
//CTRL: 17, // Check by `&& event.ctrlKey`