bitburner-src/utils/JSONReviver.d.ts

11 lines
331 B
TypeScript
Raw Normal View History

interface IReviverValue {
ctor: string;
2021-05-01 09:17:31 +02:00
data: any;
}
export function Generic_fromJSON<T>(ctor: new () => T, data: any): T;
2021-05-01 09:17:31 +02:00
export function Generic_toJSON(ctorName: string, obj: any, keys?: string[]): string;
export function Reviver(key, value: IReviverValue);
export namespace Reviver {
2021-05-01 09:17:31 +02:00
export let constructors: any;
}