@deafwave/osrs-botmaker-types 0.5.3 → 0.5.5

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.
package/README.md CHANGED
@@ -4,3 +4,4 @@ Created by [Chandler 'Deafwave' Ferry](https://github.com/ChandlerFerry) to ease
4
4
 
5
5
  ## Donate
6
6
  - https://ko-fi.com/deafwave
7
+
@@ -1,6 +1,6 @@
1
1
  declare namespace javax.swing {
2
- export class JList {
3
- constructor(items: string[]);
2
+ export class JList extends javax.swing.JComponent {
3
+ constructor(items: string[] | javax.swing.DefaultListModel);
4
4
  getSelectedValue(): string;
5
5
  getSelectedValuesList(): string[];
6
6
  setSelectionMode(mode: number): void;
@@ -101,7 +101,6 @@ declare namespace bot {
101
101
  * @param message The message to print.
102
102
  */
103
103
  printLogMessage: (message: string) => void;
104
-
105
104
  /**
106
105
  * Runs a client script.
107
106
  * @param ints The integer parameters for the script.
@@ -72,10 +72,7 @@ declare namespace bot {
72
72
  * @param spellName The name of the spell to cast
73
73
  * @param actionIndex Action index for the spell
74
74
  */
75
- cast: {
76
- (spellName: SpellName): void;
77
- (spellName: SpellName, actionIndex: number): void;
78
- };
75
+ cast: (spellName: SpellName, actionIndex?: number) => void;
79
76
 
80
77
  /**
81
78
  * Casts a magic spell on an inventory item by its ID
@@ -15,6 +15,12 @@ declare namespace bot {
15
15
  * Stops the execution of the bot task.
16
16
  */
17
17
  stop: () => void;
18
+
19
+ /**
20
+ * Sleep for a specified duration.
21
+ * @param duration - The duration to sleep in milliseconds.
22
+ */
23
+ sleep: (duration: number) => void;
18
24
  }
19
25
 
20
26
  /**
@@ -19,10 +19,15 @@ declare namespace bot {
19
19
  * @param p0 The first parameter for the interaction
20
20
  * @param p1 The second parameter for the interaction (optional)
21
21
  */
22
- interactSpecifiedWidget: {
23
- (packedWidgetId: number, identifier: number, opcode: number, p0: number): void;
24
- (packedWidgetId: number, identifier: number, opcode: number, p0: number, p1: number): void;
25
- };
22
+
23
+ interactSpecifiedWidget: (
24
+ packedWidgetId: number,
25
+ identifier: number,
26
+ opcode: number,
27
+ p0: number,
28
+ p1?: number
29
+ ) => void;
30
+
26
31
  /**
27
32
  * Interacts with a widget by matching its text content
28
33
  * @param text The text to search for in widgets
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-types",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "author": {
5
5
  "name": "Chandler Ferry",
6
6
  "url": "https://github.com/ChandlerFerry"