Files
GDevelop/GDevelop.js/types/gdserializer.js
ViktorVovk f39d8bb080 Add experimental support for "canonical" serialization of events (#8552)
- When activated, the JSON of the project is saved with properties always in alphabetical order. Fields in events are also never omitted.
- The preference is controlled via `gdevelop-settings.yaml` (already read
by the IDE on project open):

  ```yaml
  # gdevelop-settings.yaml
  preferences:
    canonicalEventSerialization: true
  ```

Only show in developer changelog
Co-authored-by: Viktor Vovk <vvovk@playtika.com>
2026-05-20 16:10:12 +02:00

12 lines
448 B
JavaScript

// Automatically generated by GDevelop.js/scripts/generate-types.js
declare class gdSerializer {
static fromJSObject(object: Object): gdSerializerElement;
static toJSObject(element: gdSerializerElement): any;
static toJSON(element: gdSerializerElement): string;
static fromJSON(json: string): gdSerializerElement;
static setCanonicalMode(canonical: boolean): void;
static isCanonicalMode(): boolean;
delete(): void;
ptr: number;
};