Template/types/GM_xmlhttpRequest.d.js

17 lines
479 B
JavaScript
Raw Permalink Normal View History

2024-12-20 22:14:36 +00:00
/**
* @param {Object} request
* @param {string} request.method
* @param {string} request.url
* @param {Object<string, string>} [request.headers]
* @param {function(GMXMLHttpRequestResponse):void} [request.onload]
* @param {Function} [request.onerror]
* @returns {void}
*/
function GM_xmlhttpRequest(request) {}
/**
* Response object for the HTTP request.
* @typedef {Object} GMXMLHttpRequestResponse
* @property {string} responseText - The response body as text.
*/