|
|
@@ -37,7 +37,7 @@ function checkStatus(response) {
|
|
|
*
|
|
|
* @param {string} url The URL we want to request
|
|
|
* @param {{method:string,body}} [options] The options we want to pass to "fetch"
|
|
|
- * @return {object} An object containing either "data" or "err"
|
|
|
+ * @return {Promise<*>} An object containing either "data" or "err"
|
|
|
*/
|
|
|
export default async function request(url, options) {
|
|
|
const defaultOptions = {
|