From d329cf5430b4580d07e3c43dec6f3a778810dcf1 Mon Sep 17 00:00:00 2001 From: "yohann.poli" Date: Mon, 5 Mar 2018 22:44:50 +0100 Subject: [PATCH] fix nw.js JSON type as any --- types/nw.js/index.d.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/types/nw.js/index.d.ts b/types/nw.js/index.d.ts index b4e941b0a7..93307f9e87 100644 --- a/types/nw.js/index.d.ts +++ b/types/nw.js/index.d.ts @@ -372,7 +372,7 @@ declare module NWJS_Helpers { * The paper size spec * example: 'mediaSize':{'name': 'CUSTOM', 'width_microns': 279400, 'height_microns': 215900, 'custom_display_name':'Letter', 'is_default': true} */ - mediaSize: JSON; + mediaSize: any; /** * Whether to print CSS backgrounds @@ -1072,9 +1072,9 @@ declare module NWJS_Helpers { * Enumerate the printers in the system. * * @param callback {function(dev_win?)} callback with the native window of the DevTools window. - * - (optional) printers {JSON[]} An array of JSON objects for the printer information. + * - (optional) printers {any[]} An array of json objects for the printer information. */ - getPrinters( callback: ( printers?: JSON[] ) => void ): void; + getPrinters( callback: ( printers?: any[] ) => void ): void; /** * Query the status of devtools window. @@ -1084,9 +1084,9 @@ declare module NWJS_Helpers { /** * Print the web contents in the window without the need for user’s interaction. * - * @param options {Object} Specify whether to close the window forcely and bypass close event. + * @param options {any | PrintOption} Specify whether to close the window forcely and bypass close event. */ - print( options: JSON | PrintOption ): void; + print( options: any | PrintOption ): void; /** * Set window's maximum size. @@ -1381,9 +1381,9 @@ declare namespace nw { dataPath: string; /** - * Get the JSON object of the manifest file. + * Get the json object of the manifest file. */ - manifest: JSON; + manifest: any; /** * Clear the HTTP cache in memory and the one on disk. This method call is synchronized.