diff --git a/types/index.d.ts b/types/index.d.ts index da0a503c..93ac749b 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -132,9 +132,9 @@ declare module 'react-sketch' { * Returns JSON representation of canvas * * @param propertiesToInclude Array Any properties that you might want to additionally include in the output - * @returns {string} JSON string + * @returns {any} JSON object */ - toJSON(propertiesToInclude?: ArrayLike): string + toJSON(propertiesToInclude?: ArrayLike): any /** * Populates canvas with data from the specified JSON. @@ -143,7 +143,7 @@ declare module 'react-sketch' { * * @param json JSON string or object */ - fromJSON(json: string): void + fromJSON(json: any): void /** * Clear the content of the canvas, this will also clear history but will return the canvas content as JSON to be