Skip to content

Commit

Permalink
feat(types): add ignoreDefaults and ignoreEmptyAttributes options to …
Browse files Browse the repository at this point in the history
…toJSON method
  • Loading branch information
MartinKanera committed Jul 29, 2024
1 parent c3ad952 commit f2a3403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/joint-core/types/joint.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export namespace dia {

getCommonAncestor(...cells: Cell[]): Element | undefined;

toJSON(): any;
toJSON(opt?: { ignoreDefaults: boolean | string[], ignoreEmptyAttributes: boolean }): any;

fromJSON(json: any, opt?: S): this;

Expand Down Expand Up @@ -351,7 +351,7 @@ export namespace dia {

protected stopScheduledTransitions(path?: string, delim?: string): void;

toJSON(): Cell.JSON<any, A>;
toJSON(opt?: { ignoreDefaults: boolean | string[], ignoreEmptyAttributes: boolean }): Cell.JSON<any, A>;

remove(opt?: Cell.DisconnectableOptions): this;

Expand Down

0 comments on commit f2a3403

Please sign in to comment.