Skip to content

Commit

Permalink
types: Fix return type for openBlock and openEntity (PrismarineJS#2739)
Browse files Browse the repository at this point in the history
  • Loading branch information
sefirosweb authored Aug 23, 2022
1 parent d27f312 commit 7c02e2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,9 @@ export interface Bot extends TypedEmitter<BotEvents> {

transfer: (options: TransferOptions) => Promise<void>

openBlock: (block: Block, direction?: Vec3, cursorPos?: Vec3) => Promise<void>
openBlock: (block: Block, direction?: Vec3, cursorPos?: Vec3) => Promise<Window>

openEntity: (block: Entity, Class: new () => EventEmitter) => Promise<void>
openEntity: (block: Entity, Class: new () => EventEmitter) => Promise<Window>

moveSlotItem: (
sourceSlot: number,
Expand Down

0 comments on commit 7c02e2e

Please sign in to comment.