mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 17:53:55 +01:00
9c09e44db2
As it currently stands, bringing in TSLint with *all* rules enabled by default and override each as we go. This means that as we upgrade and bring in new rules we might start seeing new rules that the code violates. Because all the rules are enabled by default, the choice to explicitly disable/relax rules can be discussed as part of PRs. This also brought in strict type checking. This means we shouldn't be relying on truthy/falsey value coercion. It also means that we will likely need to create some type definition files or port certain files over. That...will be a bit tedious, but will make the codebase better as a whole.
10 lines
335 B
TypeScript
10 lines
335 B
TypeScript
interface IReviverValue {
|
|
ctor: string;
|
|
data: object
|
|
}
|
|
export function Generic_fromJSON<T>(ctor: new () => T, data: any): T;
|
|
export function Generic_toJSON(ctorName: string, obj: object, keys?: string[]): string;
|
|
export function Reviver(key, value: IReviverValue);
|
|
export namespace Reviver {
|
|
export var constructors: any;
|
|
} |