fix(types): body and json can be any
This commit is contained in:
parent
be8b94c187
commit
2ffc422406
8
types.js
8
types.js
|
@ -5,11 +5,11 @@ module.exports._typesOnly = true;
|
||||||
/**
|
/**
|
||||||
* @callback Request
|
* @callback Request
|
||||||
* @param {Object} opts
|
* @param {Object} opts
|
||||||
* @param {String} [opts.body]
|
* @param {any} [opts.body]
|
||||||
* @param {Object.<String,any>} [opts.form]
|
* @param {Object.<String,any>} [opts.form]
|
||||||
* @param {Headers} opts.headers
|
* @param {Headers} [opts.headers]
|
||||||
* @param {Boolean | String} [opts.json]
|
|
||||||
* @param {String} [opts.method]
|
* @param {String} [opts.method]
|
||||||
|
* @param {Boolean | any} [opts.json]
|
||||||
* @param {String} opts.url
|
* @param {String} opts.url
|
||||||
* @returns {Response}
|
* @returns {Response}
|
||||||
*/
|
*/
|
||||||
|
@ -20,7 +20,7 @@ module.exports._typesOnly = true;
|
||||||
* @prop {Headers} headers
|
* @prop {Headers} headers
|
||||||
* @prop {Boolean} ok
|
* @prop {Boolean} ok
|
||||||
* @prop {any} [response] - TODO (browser only)
|
* @prop {any} [response] - TODO (browser only)
|
||||||
* @prop {any} request - TODO
|
* @prop {any} [request] - TODO
|
||||||
* @prop {String} status
|
* @prop {String} status
|
||||||
* @prop {Number} statusCode
|
* @prop {Number} statusCode
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue