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

Add intoOneof #542

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add intoOneof #542

wants to merge 1 commit into from

Conversation

otakuto
Copy link

@otakuto otakuto commented May 28, 2023

I have created a new utility function that converts an object to oneof.

// before
const v = { oneofKind: 'a', a: 'test' }

// after
const v = intoOneof({ a: 'test' })

Please review my changes and let me know if any modifications are required.

Thank you!

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.

1 participant