Skip to content

Commit d4db399

Browse files
Update index.d.ts (#3175)
Added the type reference for the world object
1 parent 010460e commit d4db399

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { Recipe } from 'prismarine-recipe'
88
import { Block } from 'prismarine-block'
99
import { Entity } from 'prismarine-entity'
1010
import { ChatMessage } from 'prismarine-chat'
11+
import { world } from 'prismarine-world'
1112
import { Registry } from 'prismarine-registry'
1213

1314
export function createBot (options: { client: Client } & Partial<BotOptions>): Bot
@@ -192,7 +193,7 @@ export interface Bot extends TypedEmitter<BotEvents> {
192193
teamMap: { [name: string]: Team }
193194
controlState: ControlStateStatus
194195
creative: creativeMethods
195-
world: any
196+
world: world.World
196197
_client: Client
197198
heldItem: Item | null
198199
usingHeldItem: boolean

0 commit comments

Comments
 (0)