mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 07:07:50 +02:00
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:
+3
-12
@@ -1,9 +1,6 @@
|
||||
/** Construct a type using the values from an object. Requires object to be defined "as const" */
|
||||
export type ValuesFrom<T> = T[keyof T];
|
||||
|
||||
/** Only allowed to be true if the types are equal. */
|
||||
export type TypeEquality<T1, T2> = [T1] extends [T2] ? ([T2] extends [T1] ? true : false) : false;
|
||||
|
||||
/**
|
||||
* Status object for functions that return a boolean indicating success/failure
|
||||
* and an optional message
|
||||
@@ -19,18 +16,12 @@ export interface IReturnStatus {
|
||||
* It is up to the implementor to ensure max > min.
|
||||
*/
|
||||
export interface IMinMaxRange {
|
||||
/**
|
||||
* Value by which the bounds are to be divided for the final range
|
||||
*/
|
||||
/** Value by which the bounds are to be divided for the final range */
|
||||
divisor?: number;
|
||||
|
||||
/**
|
||||
* The maximum bound of the range.
|
||||
*/
|
||||
/** The maximum bound of the range. */
|
||||
max: number;
|
||||
|
||||
/**
|
||||
* The minimum bound of the range.
|
||||
*/
|
||||
/** The minimum bound of the range. */
|
||||
min: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user