breakout71/src/types.d.ts

38 lines
754 B
TypeScript
Raw Normal View History

2025-03-06 14:06:02 +01:00
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; }
}