Skip to content

Commit

Permalink
Add typing for toJSON (DefinitelyTyped#36156)
Browse files Browse the repository at this point in the history
  • Loading branch information
xie authored and Konch Roman committed Aug 13, 2019
1 parent a5c2c77 commit 9576daf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions types/fabric/fabric-impl.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,13 @@ export class StaticCanvas {
*/
toDatalessJSON(propertiesToInclude?: string[]): string;

/**
* Returns JSON representation of canvas
* @param {Array} [propertiesToInclude] Any properties that you might want to additionally include in the output
* @return {String} JSON string
*/
toJSON(propertiesToInclude?: string[]): string;

/**
* Returns object representation of canvas
* @param {Array} [propertiesToInclude] Any properties that you might want to additionally include in the output
Expand Down

0 comments on commit 9576daf

Please sign in to comment.