@deafwave/osrs-botmaker-types 0.6.3 → 0.6.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.
@@ -93,7 +93,7 @@ declare namespace net.runelite.client.ui.overlay {
93
93
  action: net.runelite.api.MenuAction,
94
94
  option: string,
95
95
  target: string,
96
- callback: Consumer<net.runelite.api.MenuEntry>,
96
+ callback: Consumer<net.runelite.api.MenuEntry> | ((entry: net.runelite.api.MenuEntry) => void),
97
97
  ): any;
98
98
  removeMenuEntry(
99
99
  action: net.runelite.api.MenuAction,
@@ -2,6 +2,7 @@
2
2
  /// <reference path="../../../../../java/index.d.ts" />
3
3
  declare namespace net.runelite.client.ui.overlay.components {
4
4
  export class LineComponentBuilder {
5
+ constructor() : LineComponentBuilder;
5
6
  bounds(bounds: Rectangle): LineComponentBuilder;
6
7
  build(): LineComponent;
7
8
  left(left: string): LineComponentBuilder;
@@ -17,6 +18,7 @@ declare namespace net.runelite.client.ui.overlay.components {
17
18
 
18
19
  export class LineComponent {
19
20
  builder(): LineComponentBuilder;
21
+ static builder(): LineComponentBuilder;
20
22
  getBounds(): Rectangle;
21
23
  render(graphics: Graphics2D): java.awt.Dimension;
22
24
  setLeft(left: string): void;
@@ -2,6 +2,7 @@
2
2
  /// <reference path="../../../../../java/index.d.ts" />
3
3
  declare namespace net.runelite.client.ui.overlay.components {
4
4
  export class TitleComponentBuilder {
5
+ constructor() : TitleComponentBuilder;
5
6
  bounds(bounds: Rectangle): TitleComponentBuilder;
6
7
  build(): TitleComponent;
7
8
  color(color: java.awt.Color): TitleComponentBuilder;
@@ -13,6 +14,7 @@ declare namespace net.runelite.client.ui.overlay.components {
13
14
 
14
15
  export class TitleComponent {
15
16
  builder(): TitleComponentBuilder;
17
+ static builder(): TitleComponentBuilder;
16
18
  getBounds(): Rectangle;
17
19
  build(): TitleComponent;
18
20
  setColor(color: java.awt.Color): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deafwave/osrs-botmaker-types",
3
- "version": "0.6.3",
3
+ "version": "0.6.5",
4
4
  "author": {
5
5
  "name": "Chandler Ferry",
6
6
  "url": "https://github.com/ChandlerFerry"