CodeSerializer.d.ts 629 B

12345678910111213141516171819
  1. export namespace CodeSerializer {
  2. export function serializeObject(fullName: string, serializationTarget: object): string;
  3. export function serializeClass(fullObjectName: string, serializationTarget: object, basePrototypeName?: string, overrideFunctions?: CodeSerializationInstruction[]): string;
  4. }
  5. export class CodeSerializationInstruction {
  6. constructor(name: string, fullName: string);
  7. name: string;
  8. fullName: string;
  9. code: string;
  10. removeCode: boolean;
  11. getName(): string;
  12. getFullName(): string;
  13. setCode(code: string): this;
  14. getCode(): string;
  15. setRemoveCode(removeCode: boolean): this;
  16. isRemoveCode(): boolean;
  17. }