-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Type trend logic #3152
Type trend logic #3152
Conversation
breakdown_value, | ||
people.next | ||
) | ||
} |
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.
since we're properly type checking now, what should we do if listeners do nothing here? maybe emit an error so we can log it? and show UI error
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.
Not sure what you mean - if they do nothing in what sense?
You mean if values.people is null?
If we think a state is impossible honestly an type assertion is ok here. e.g. const people = values.people as something
or const { people: currPeople, count, action, label, day, breakdown_value, next } = values.people!
though we have prohibited the latter.
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.
yeah ok we can roll with that
Changes
Please describe.
If this affects the frontend, include screenshots.
Checklist