This commit is contained in:
Renan LE CARO 2025-03-06 14:06:02 +01:00
parent 6d0ad5e675
commit e9d58d6140
13 changed files with 4479 additions and 961 deletions

38
src/types.d.ts vendored Normal file
View file

@ -0,0 +1,38 @@
import {rawUpgrades} from "./rawUpgrades";
export type RawLevel = {
name: string;
size: number;
bricks: string;
svg: string;
color: string;
};
export type Level = {
name: string;
size: number;
bricks: string[];
svg: string;
color: string;
threshold?: number;
sortKey?: number;
};
export type Palette = { [k: string]: string }
export type Upgrade={
threshold: number;
giftable: boolean;
"id": string;
"name": string;
"max": number;
help: (lvl:string) => string;
fullHelp: string;
requires:PerkId|''
}
export type PerkId = typeof rawUpgrades[number]['id']
declare global {
interface Window { webkitAudioContext: typeof AudioContext; }
}