mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 19:37:07 +02:00
2b5090a273
Adding a few custom types and documentation to clean up TSLint rule violations. Included some usage of rule disabling for things like long lines where we need to extract text that the user would see. That level of text should really be separated from the logic.
12 lines
280 B
TypeScript
12 lines
280 B
TypeScript
/**
|
|
* Performs an equality check between two instances of the same type.
|
|
*/
|
|
export type EqualityFunc<T> = (a: T, b: T) => boolean;
|
|
|
|
/**
|
|
* A map is an object that holds a mapping between string keys and some consistent type.
|
|
*/
|
|
export interface IMap<T> {
|
|
[key: string]: T;
|
|
}
|