kolmafia 5.29176.0 → 5.29178.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +13 -10
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,16 +1,20 @@
1
- // v5.29176.0
2
- // Generated by KoLmafia r29176 with type generator v5
3
- type Environment = "indoor" | "none" | "outdoor" | "underground" | "underwater" | "unknown";
4
- type ModifierValueType = "boolean" | "multinumeric" | "multistring" | "none" | "numeric" | "string";
1
+ // v5.29178.0
2
+ // Generated by KoLmafia r29178 with type generator v5
3
+ export type Environment = "indoor" | "none" | "outdoor" | "underground" | "underwater" | "unknown";
4
+ export type ModifierValueType = "boolean" | "multinumeric" | "multistring" | "none" | "numeric" | "string";
5
+ export type CombatFilter = string | ((round: number, monster: Monster, text: string) => string);
6
+ export interface Rng {
7
+ readonly __rng: unique symbol;
8
+ }
5
9
  export function abort(string?: string): never;
6
10
  export function absorbedMonsters(): { [monster: string]: boolean };
7
11
  export function addItemCondition(count: number, item: Item): void;
8
12
  export function addItemCondition(item: Item, count: number): void;
9
13
  export function adv1(locationValue: Location, adventuresUsedValue?: number): boolean;
10
- export function adv1(locationValue: Location, adventuresUsedValue: number, filterFunction?: string | ((round: number, monster: Monster, text: string) => string)): boolean;
14
+ export function adv1(locationValue: Location, adventuresUsedValue: number, filterFunction?: CombatFilter): boolean;
11
15
  export function advCost(skill: Skill): number;
12
- export function adventure(location: Location, count: number, filterFunction?: string | ((round: number, monster: Monster, text: string) => string)): boolean;
13
- export function adventure(count: number, location: Location, filterFunction?: string | ((round: number, monster: Monster, text: string) => string)): boolean;
16
+ export function adventure(location: Location, count: number, filterFunction?: CombatFilter): boolean;
17
+ export function adventure(count: number, location: Location, filterFunction?: CombatFilter): boolean;
14
18
  export function allMonstersWithId(): { [monster: string]: boolean };
15
19
  export function allNormalOutfits(): string[];
16
20
  export function alliedRadio(request: string): boolean;
@@ -587,7 +591,7 @@ export function round(val: number): number;
587
591
  export function runChoice(decision: number, extra?: string): string;
588
592
  export function runChoice(decision: number, extra: boolean): string;
589
593
  export function runChoice(decision: number, custom: boolean, more: string): string;
590
- export function runCombat(filterFunction?: string | ((round: number, monster: Monster, text: string) => string)): string;
594
+ export function runCombat(filterFunction?: CombatFilter): string;
591
595
  export function runTurn(): string;
592
596
  export function runaway(): string;
593
597
  export function sausageGoblinChance(): number;
@@ -814,6 +818,7 @@ declare abstract class MafiaClass {
814
818
  static all<T extends MafiaClass>(this: { new (): T; }): T[];
815
819
  static none: MafiaClass;
816
820
  }
821
+ export type { MafiaClass };
817
822
  export class Bounty extends MafiaClass {
818
823
  static none: Bounty;
819
824
  /**
@@ -1642,5 +1647,3 @@ declare class Storage {
1642
1647
  setItem(key: string, value: string): void;
1643
1648
  }
1644
1649
  export const sessionStorage: Storage;
1645
-
1646
- declare class Rng {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kolmafia",
3
- "version": "5.29176.0",
3
+ "version": "5.29178.0",
4
4
  "description": "Typings for the KoLmafia JS standard library",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",