kolmafia 5.27580.0 → 5.27582.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 +35 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- // v5.27580.0
2
- // Generated by KoLmafia r27580 with type generator v5
1
+ // v5.27582.0
2
+ // Generated by KoLmafia r27582 with type generator v5
3
3
  type Environment = "indoor" | "none" | "outdoor" | "underground" | "underwater" | "unknown";
4
4
  type ModifierValueType = "boolean" | "none" | "numeric" | "string";
5
5
  export function abort(string: string): never;
@@ -1581,4 +1581,36 @@ export class Vykea extends MafiaClass {
1581
1581
  /**
1582
1582
  * Attack element */
1583
1583
  readonly attackElement: Element;
1584
- }
1584
+ }
1585
+ declare class Storage {
1586
+ /**
1587
+ * Returns the number of key/value pairs.
1588
+ */
1589
+ readonly length: number;
1590
+
1591
+ /**
1592
+ * Removes all key/value pairs, if there are any.
1593
+ */
1594
+ clear(): void;
1595
+
1596
+ /**
1597
+ * Returns the current value associated with the given key, or null if the given key does not exist.
1598
+ */
1599
+ getItem(key: string): string | null;
1600
+
1601
+ /**
1602
+ * Returns the name of the nth key, or null if n is greater than or equal to the number of key/value pairs.
1603
+ */
1604
+ key(index: number): string | null;
1605
+
1606
+ /**
1607
+ * Removes the key/value pair with the given key, if a key/value pair with the given key exists.
1608
+ */
1609
+ removeItem(key: string): void;
1610
+
1611
+ /**
1612
+ * Sets the value of the pair identified by key to value, creating a new key/value pair if none existed for key previously.
1613
+ */
1614
+ setItem(key: string, value: string): void;
1615
+ }
1616
+ export const sessionStorage: Storage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kolmafia",
3
- "version": "5.27580.0",
3
+ "version": "5.27582.0",
4
4
  "description": "Typings for the KoLmafia JS standard library",
5
5
  "main": "index",
6
6
  "types": "index",