PrismarineJS / mineflayer-collectblock

A simple utility plugin for Mineflayer that add a higher level API for collecting blocks.
MIT License
39 stars 25 forks source link

fix: add declaration for mineflayer plugin in index.ts #128

Closed Wyatt-Stanke closed 1 year ago

Wyatt-Stanke commented 1 year ago

Right now, when you try to use bot.collectBlock in TypeScript, it doesn't know that the Bot can do that and errors. This adds a mineflayer module declaration, similar to https://github.com/PrismarineJS/mineflayer-pathfinder (here). I also removed the unneeded ts-expect-error since TypeScript now knows that there's a CollectBlock supposed to be there.