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

fix(oneOf): identify Nullable type returned from oneOf method #238

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

Conversation

themagickoala
Copy link
Contributor

This PR is incomplete, as the ts-expect-error tests are failing in one-to-one test files for create and update. My intention here is for the return value of oneOf to default to OneOf<ModelType, false>, and to be OneOf<ModelType, true> if you pass { nullable: true }. However, the types I've added seem to not be specific enough, as the default is just OneOf<ModelType, boolean> whatever you set. @kettanaito are you able to provide some guidance? If not, I'll try and come back to this another time!

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