Merge pull request #24088 from yohannpoli/fix/nwjs-json

fix nw.js JSON type as any
This commit is contained in:
Armando Aguirre 2018-03-08 11:16:54 -08:00 committed by GitHub
commit 97531421ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 users 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.