Skip to content

Commit 7d4cd63

Browse files
authored
Fix typing error in loader function (#122)
Fixes #111 Update the `loader` function in `index.d.ts` to accept either a string `mcVersion` or a `bot.registry` object. * Modify the TypeScript definition to reflect the possible `bot.registry` parameter. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/PrismarineJS/prismarine-item/issues/111?shareId=XXXX-XXXX-XXXX-XXXX).
1 parent 9b6c8d3 commit 7d4cd63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ export class Item {
4040
static nextStackId(): number;
4141
}
4242

43-
export default function loader(mcVersion: string): typeof Item;
43+
export default function loader(mcVersion: string | object): typeof Item;

0 commit comments

Comments
 (0)