feat: test tank filters

This commit is contained in:
TrèsAbhi committed 2023-12-06 10:34:43 -06:00
1 parent 2ce083222e
commit 604e751bf4
6 files changed
+43 -5

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@ import { TankType, TreeTypeString } from '../../../components/Tanks';
import { asset } from '../asset';
export interface TankDefinition {
id: number;
nation: string;
name: string;
name_short?: string;
@@ -15,7 +16,7 @@ export interface TankDefinition {
export type TankDefinitions = Record<number, TankDefinition>;
export const tankDefinitions = fetch(asset('definitions/tanks.json'), {
cache: 'no-store',
cache: 'no-cache',
}).then(async (response) => response.json() as Promise<TankDefinitions>);
const entries = new Promise<TankDefinition[]>(async (resolve) => {