File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -438,7 +438,9 @@ declare interface VMScriptGMObjectVMExtensions {
438438 addElement : typeof GM_addElement ;
439439 addStyle : typeof GM_addStyle ;
440440 addValueChangeListener : typeof GM_addValueChangeListener ;
441- download : typeof GM_download ;
441+ download :
442+ ( ( options : VMScriptGMDownloadOptions ) => ( Promise < Blob > | void ) ) |
443+ ( ( url : string , name : string ) => ( Promise < Blob > | void ) ) ;
442444 getResourceText : typeof GM_getResourceText ;
443445 log : typeof GM_log ;
444446 removeValueChangeListener : typeof GM_removeValueChangeListener ;
@@ -458,7 +460,9 @@ declare interface VMScriptGMObject extends VMScriptGMObjectVMExtensions {
458460 notification : typeof GM_notification ;
459461 openInTab : typeof GM_openInTab ;
460462 setClipboard : typeof GM_setClipboard ;
461- xmlHttpRequest : typeof GM_xmlhttpRequest ;
463+ xmlHttpRequest : < T = string | Blob | ArrayBuffer | Document | object > (
464+ details : VMScriptGMXHRDetails < T >
465+ ) => ( Promise < T > & VMScriptXHRControl ) ;
462466}
463467
464468declare const GM : VMScriptGMObject ;
You can’t perform that action at this time.
0 commit comments