UNPKG

@kitten-science/kitten-scientists

Version:

Add-on for the wonderful incremental browser game: https://kittensgame.com/web/

20 lines 814 B
import type { KittenScientists } from "./KittenScientists.js"; import type { Policy, Technology, Upgrade } from "./types/index.js"; export declare abstract class UpgradeManager { protected readonly _host: KittenScientists; constructor(host: KittenScientists); upgrade(upgrade: { label: string; name: Policy | Upgrade | Technology; }, variant: "policy" | "science" | "workshop"): boolean; /** * Run a piece of code that might invoke UI confirmation and * skip that UI confirmation. * * @param action The function to run without UI confirmation. * @returns Whatever `action` returns. */ static skipConfirmAsync<T>(action: () => Promise<T>): Promise<T>; static skipConfirm<T>(action: () => T): T; } //# sourceMappingURL=UpgradeManager.d.ts.map