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

feat(world): enable config namespaces key #2880

Closed
wants to merge 77 commits into from

Conversation

yonadaaa
Copy link
Contributor

No description provided.

Copy link

changeset-bot bot commented May 30, 2024

🦋 Changeset detected

Latest commit: 7ed17b9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 23 packages
Name Type
@latticexyz/world Patch
@latticexyz/cli Patch
@latticexyz/dev-tools Patch
@latticexyz/store-sync Patch
@latticexyz/world-modules Patch
mock-game-contracts Patch
@latticexyz/store-indexer Patch
@latticexyz/abi-ts Patch
@latticexyz/block-logs-stream Patch
@latticexyz/common Patch
@latticexyz/config Patch
create-mud Patch
@latticexyz/faucet Patch
@latticexyz/gas-report Patch
@latticexyz/protocol-parser Patch
@latticexyz/query Patch
@latticexyz/react Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/store Patch
@latticexyz/utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@yonadaaa yonadaaa marked this pull request as ready for review May 31, 2024 13:15
@yonadaaa yonadaaa requested a review from alvrs as a code owner May 31, 2024 13:15
.throws("Can only use `namespaces` with `namespace`, `tables`, or `systems` keys.")
.type.errors(
// eslint-disable-next-line max-len
`Type '{ AnotherOne: { tables: { Example: { schema: { id: string; name: string; age: string; }; key: string[]; }; }; }; }' is not assignable to type '"\`Can only use \`namespaces\` with \`namespace\`, \`tables\`, or \`systems\` keys.`,
Copy link
Member

@holic holic Jun 7, 2024

Choose a reason for hiding this comment

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

do we need the whole error or can we reduce this to just "cannot use" bit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will match if we only include part. Why would you not as specific as possible though?

Copy link
Member

@holic holic Jun 7, 2024

Choose a reason for hiding this comment

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

we're only testing if the error we expect is there (similar to runtime error)

if we change the shape of the object its using, then we have to update the error message too, which is a little annoying

@holic
Copy link
Member

holic commented Jul 24, 2024

replaced by #2968

@holic holic closed this Jul 24, 2024
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.

3 participants