@deafwave/osrs-botmaker-types 0.5.8 → 0.5.10

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.
@@ -12,7 +12,70 @@ declare namespace java {
12
12
  }
13
13
 
14
14
  export class Class extends Object {
15
+ asSubclass<U>(clazz: Class<U>): Class<U>;
16
+ cast<T>(obj: any): T;
17
+ desiredAssertionStatus(): boolean;
18
+ static forName(className: string): Class<any>;
19
+ static forName(name: string, initialize: boolean, loader: any): Class<any>;
20
+ getAnnotatedInterfaces(): any[];
21
+ getAnnotatedSuperclass(): any;
22
+ getAnnotation<A extends any>(annotationClass: Class<A>): A | null;
23
+ getAnnotations(): any[];
24
+ getAnnotationsByType<A extends any>(annotationClass: Class<A>): A[];
25
+ getCanonicalName(): string;
26
+ getClasses(): Class<any>[];
27
+ getClassLoader(): any;
28
+ getComponentType(): Class<any>;
29
+ getConstructor<T>(...parameterTypes: Class<any>[]): any;
30
+ getConstructors(): any[];
31
+ getDeclaredAnnotation<A extends any>(annotationClass: Class<A>): A | null;
32
+ getDeclaredAnnotations(): any[];
33
+ getDeclaredAnnotationsByType<A extends any>(annotationClass: Class<A>): A[];
34
+ getDeclaredClasses(): Class<any>[];
35
+ getDeclaredConstructor<T>(...parameterTypes: Class<any>[]): any;
36
+ getDeclaredConstructors(): any[];
37
+ getDeclaredField(name: string): any;
38
+ getDeclaredFields(): any[];
39
+ getDeclaredMethod(name: string, ...parameterTypes: Class<any>[]): any;
40
+ getDeclaredMethods(): any[];
41
+ getDeclaringClass(): Class<any>;
42
+ getEnclosingClass(): Class<any>;
43
+ getEnclosingConstructor(): any;
44
+ getEnclosingMethod(): any;
45
+ getEnumConstants<T>(): T[] | null;
46
+ getField(name: string): any;
47
+ getFields(): any[];
48
+ getGenericInterfaces(): any[];
49
+ getGenericSuperclass(): any;
50
+ getInterfaces(): Class<any>[];
51
+ getMethod(name: string, ...parameterTypes: Class<any>[]): any;
52
+ getMethods(): any[];
53
+ getModifiers(): number;
15
54
  getName(): string;
55
+ getPackage(): any;
56
+ getProtectionDomain(): any;
57
+ getResource(name: string): any;
58
+ getResourceAsStream(name: string): any;
59
+ getSigners(): any[];
60
+ getSimpleName(): string;
61
+ getSuperclass<T>(): Class<T>;
62
+ getTypeName(): string;
63
+ getTypeParameters(): any[];
64
+ isAnnotation(): boolean;
65
+ isAnnotationPresent(annotationClass: Class<any>): boolean;
66
+ isAnonymousClass(): boolean;
67
+ isArray(): boolean;
68
+ isAssignableFrom(cls: Class<any>): boolean;
69
+ isEnum(): boolean;
70
+ isInstance(obj: any): boolean;
71
+ isInterface(): boolean;
72
+ isLocalClass(): boolean;
73
+ isMemberClass(): boolean;
74
+ isPrimitive(): boolean;
75
+ isSynthetic(): boolean;
76
+ newInstance<T>(): T;
77
+ toGenericString(): string;
78
+ toString(): string;
16
79
  }
17
80
  }
18
81
  }
@@ -23,6 +23,7 @@
23
23
  /// <reference path="./types.d.ts" />
24
24
  /// <reference path="./variables.d.ts" />
25
25
  /// <reference path="./walking.d.ts" />
26
+ /// <reference path="./web.d.ts" />
26
27
  /// <reference path="./widgets.d.ts" />
27
28
 
28
29
  declare namespace bot {
@@ -53,6 +54,7 @@ declare namespace bot {
53
54
  tileItems: bot.tileItems;
54
55
  variables: bot.variables;
55
56
  walking: bot.walking;
57
+ web: bot.web;
56
58
  widgets: bot.widgets;
57
59
 
58
60
  // Direct methods
@@ -82,6 +82,13 @@ declare namespace bot {
82
82
  */
83
83
  getQuantityOfName: (itemName: string) => number;
84
84
 
85
+ /**
86
+ * Interacts with an inventory item at the specified index
87
+ * @param index The index of the item to interact with
88
+ * @param options Array of interaction options
89
+ */
90
+ interactAtIndex: (index: number, options: string[]) => void;
91
+
85
92
  /**
86
93
  * Interacts with inventory items by their IDs
87
94
  * @param itemIds Array of item IDs to interact with
@@ -0,0 +1,15 @@
1
+
2
+
3
+ declare namespace bot {
4
+
5
+ interface web {
6
+
7
+ /**
8
+ * Reads a string from the web
9
+ * Whitelisted URLs: github.com, pastebin
10
+ * @param requestURL The URL to read the string from
11
+ * @returns The string read from the web
12
+ */
13
+ readString(requestURL: string): string;
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-types",
3
- "version": "0.5.8",
3
+ "version": "0.5.10",
4
4
  "author": {
5
5
  "name": "Chandler Ferry",
6
6
  "url": "https://github.com/ChandlerFerry"