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: Allow merging multiple payloads for a single type #6

Merged
merged 2 commits into from
Feb 12, 2023

Conversation

atomrc
Copy link
Owner

@atomrc atomrc commented Feb 12, 2023

This will allow merging payloads together and generates union types for those payloads

{
   First: [
      { type: "first", value: 1, first: 1 },
      { type: "first", value: 2 },
   ],
 }

Will generate

type First = {type: "first", value: number, first?: number}
                                          // ^ first has been automatically infered optional

@atomrc atomrc merged commit 0bbd6ef into main Feb 12, 2023
@atomrc atomrc deleted the feat/property-union branch February 12, 2023 17:13
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.

None yet

1 participant