bitburner-src/utils/JSONReviver.d.ts
2021-09-08 23:47:34 -04:00

11 lines
325 B
TypeScript

interface IReviverValue {
ctor: string;
data: any;
}
export function Generic_fromJSON<T>(ctor: new () => T, data: any): T;
export function Generic_toJSON(ctorName: string, obj: any, keys?: string[]): string;
export function Reviver(key, value: IReviverValue);
export namespace Reviver {
export let constructors: any;
}