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

Revision 0.29.3 #487

Merged
merged 2 commits into from
Jul 3, 2023
Merged

Revision 0.29.3 #487

merged 2 commits into from
Jul 3, 2023

Conversation

sinclairzx81
Copy link
Owner

This PR implements a small fix for Type.KeyOf where optional properties were being omitted.

const T = Type.Object({
  x: Type.Optional(Type.String())
})

const K = Type.KeyOf(T) // before: TNever
                        // after:  TLiteral<'x'>

@sinclairzx81 sinclairzx81 merged commit da10cc0 into master Jul 3, 2023
@sinclairzx81 sinclairzx81 deleted the keyof branch July 4, 2023 13:38
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