Revert "Additional changes for the merge"
This reverts commit efb5e1d1cc
.
This commit is contained in:
parent
efb5e1d1cc
commit
abdb43c440
27 changed files with 11178 additions and 1048 deletions
|
@ -1,4 +1,4 @@
|
|||
import type { Endpoints } from './api.types';
|
||||
import { Endpoints } from './api.types';
|
||||
|
||||
const MK_API_ERROR = Symbol();
|
||||
|
||||
|
@ -83,7 +83,7 @@ export class APIClient {
|
|||
cache: 'no-cache',
|
||||
}).then(async (res) => {
|
||||
const body = res.status === 204 ? null : await res.json();
|
||||
|
||||
|
||||
if (res.status === 200) {
|
||||
resolve(body);
|
||||
} else if (res.status === 204) {
|
||||
|
@ -96,7 +96,7 @@ export class APIClient {
|
|||
}
|
||||
}).catch(reject);
|
||||
});
|
||||
|
||||
|
||||
return promise as any;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue