feat: cleaned blitz

This commit is contained in:
TresAbhi committed 2023-06-27 02:13:57 +00:00
1 parent 9dc48c9125
commit c7821d03d2
15 files changed
+36 -68

No files matched your search

+10 -1
View File
@@ -1,6 +1,15 @@
import { WargamingResponse } from '../../types/wargamingResponse.js';
import errorWithCause from '../node/errorWithCause.js';
export type WargamingResponse<Data extends object> =
| {
status: 'error';
error: { field: string; message: string; code: 402; value: null };
}
| {
status: 'ok';
data: Data;
};
export default async function getWargamingResponse<Data extends object>(
url: string,
) {