-
Notifications
You must be signed in to change notification settings - Fork 117
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
remove union type for chat message #1102
remove union type for chat message #1102
Conversation
✅ Deploy Preview for fdc3 canceled.
|
@bingenito Heres a PR from @Yannick-Malins that will remove that union type, which was left in for backwards compatibility, but is likely not needed as this type was added in 2.1. If this looks good to you we'll confirm consent for it at the next SWG meeting and then merge it (and regenerate the typescript context types in the NPM module - currently a manual process due to a quicktype issue). I'll also see what we can do about adding a recommendation to not use union types in future. |
Is it possible to see what the type will look like as part of the PR? |
Not until I can migrate it to FINOS repo branch and run the generation (would be automated, but for the aforementioned quicktype issue). I can do that migration after @Yannick-Malins is authorized by easyCLA (which is hopefully just a case of clicking on the link in the above message from the easyCLA bot #1102 (comment)) |
This is the quicktype PR we're waiting on seeing merged so we can go back to automated generation: glideapps/quicktype#2426 |
@bingenito I got access to the fork from @Yannick-Malins to regenerate the types, you can now see the change to ContextTypes.ts in the diff |
Thanks @kriswest and @Yannick-Malins, looks good. I could have inferred that is the result but nice to see what gets generated up front. |
Very true - feel free to bug the quicktype maintainers for me :-p |
Generation of types is back to automated on commit, although it doesn't make it into the PR unless you run it yourself first, which is now also possible. @Yannick-Malins the SWG meeting approved doing this last week, so now we just need to:
|
/easycla |
@Yannick-Malins @mistryvinay can one of you hit that authorize link in the EasyCLA comment and check if you've got one of the new CLAs in place? |
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.
LGTM
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.
Needs a changelog entry
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.
LGTM
force the message part of a chat message to be a types structure, remove the union type that was kept for initial compatibility
update documentation