Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add explicit typings, add file-based package resolution #15

Merged
merged 2 commits into from
Feb 23, 2025

Conversation

justinbrick
Copy link
Contributor

@justinbrick justinbrick commented Feb 23, 2025

This pull request contains two simple changes, one adds an explicit typing and one small fix to the type of the CraftOS declaration, and the other changes the package resolution to local files.

You can see my reasoning for both of these changes on the individual commits.

this changes typings to local. it's worth noting, there is not exactly a benefit to this, as this is a template, and changes to the NPM package would not be reflected in people's clones of this template as a result.
however, the NPM packages have not been updated in a while and are now outdated/inaccurate, and in the interest of keeping things carefree and adding less stress to your maintenance over a lightweight template, i think this would help people as if they wanted updated typings, they could simply fetch the latest from the template.
This commit adds an explicitly named type for the return of the `list()` function on an inventory peripheral.
This allows for people to create their own typings based off of the slot detail or reference the type as part of their own code.

This also contains one type fix, changing the `count` field on `ItemDetail` to a number.
Copy link
Owner

@MCJack123 MCJack123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@MCJack123 MCJack123 merged commit 12bcde0 into MCJack123:master Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants