This commit is contained in:
AJ ONeal 2022-09-01 01:09:28 -06:00
parent 39384ea727
commit d37a7fa392
No known key found for this signature in database
GPG Key ID: 585419CA6DB0AA23
1 changed files with 3 additions and 32 deletions

View File

@ -1,34 +1,5 @@
'use strict';
module.exports._typesOnly = true;
/** /**
* @callback Request * @typedef {import('./').RequestOptions} RequestOptions
* @param {RequestOptions} opts * @typedef {import('./').Response} Response
* @returns {Response} * @typedef {import('./').Headers} Headers
*/
/**
* @typedef {Object} RequestOptions
* @prop {any} [opts.body]
* @prop {Object.<String,any>} [opts.form]
* @prop {Headers} [opts.headers]
* @prop {String} [opts.method]
* @prop {Boolean | any} [opts.json]
* @prop {String} opts.url
*/
/**
* @typedef {Object} Response
* @prop {any} body
* @prop {Headers} headers
* @prop {Boolean} ok
* @prop {any} [response] - TODO (browser only)
* @prop {any} [request] - TODO
* @prop {String} status
* @prop {Number} statusCode
*/
/**
* @typedef {Object.<String,String|Array<String>>} Headers
*/ */