bitburner-src/utils/JSONReviver.d.ts

11 lines
325 B
TypeScript
Raw Normal View History

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