From 02a5a1677452e0ea4f0e8f782fb7dc1ac8cdd883 Mon Sep 17 00:00:00 2001 From: Karl von Randow Date: Sun, 3 Feb 2019 11:27:40 +1300 Subject: [PATCH] Types: toJSON method actually returns an object --- types/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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