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

refactor(types): better null type handling #34

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

nfroidure
Copy link
Owner

Use null literal to compose types intersections instead of using NonNullable for not nullable fields. It should lead to a lighter type definition.

BREAKING CHANGE: Not sure if it really breaks anything but won't hurt to create a major version just in case.

fix #33

Use `null` literal to compose types intersections instead of using `NonNullable` for not nullable
fields. It should lead to a lighter type definition.

BREAKING CHANGE: Not sure if it really breaks anything but won't hurt to create a major version just
in case.

fix #33
@nfroidure nfroidure added the enhancement New feature or request label May 30, 2024
@nfroidure nfroidure self-assigned this May 30, 2024
@kostia1st
Copy link

Looks like a great clean up, and actual schema-to-code correspondence. By visually looking thru the changes I cannot spot any issues with it.

Thanks a bunch!

@nfroidure nfroidure merged commit 1b9bc69 into main May 30, 2024
2 checks passed
@nfroidure nfroidure deleted the refactor/nullable branch May 30, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NonNullable bloating the typings file
2 participants