-
Notifications
You must be signed in to change notification settings - Fork 15
SY-2359 Make x/status
package in all languages
#1235
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
base: rc
Are you sure you want to change the base?
SY-2359 Make x/status
package in all languages
#1235
Conversation
|
||
import { z } from "zod"; | ||
|
||
export const SUCCESS_VARIANT = "success"; |
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.
Assigning union value types to generic utilities like this in typescript isn't useful IMO. It's kind if like having direction="x" and direction={direction.X} inside of an Align.Space. The typescript compiler will already restrict the union types to a point where "x" is as type safe as {direction.X} and we don't introduce a whole new variable. Obv this is not the case in C++ or Go.
Issue Pull Request
Key Information
Description
Abstract out all status packages to use the same four common statuses (info, success, warning, error) in all languages.
I was going to do this in the CDC PR but realized I should practice what I preach on splitting up PRs :).
Basic Readiness
Backwards Compatibility
Data Structures
I have ensured that previous versions of stored data structures are properly migrated to new formats in the following projects:
API Changes
The following projects have backwards-compatible APIs:
Breaking Changes