-
Notifications
You must be signed in to change notification settings - Fork 202
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(store, world): throw if required keys are not provided, more validations #2481
Conversation
|
@@ -26,7 +26,7 @@ export type TablesInput = { | |||
|
|||
export type StoreInput = { | |||
readonly namespace?: string; | |||
readonly tables: TablesInput; | |||
readonly tables?: TablesInput; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it necessary for this to be optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was an oversight, you don't have to provide tables in your config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when would you want to specify a config without tables?
Add more type errors for missing required keys or invalid inputs