Skip to content

Replace any with unknown#244

Closed
Leo5878 wants to merge 5 commits intoJasonShin:mainfrom
Leo5878:fix/replace-any-with-unknown
Closed

Replace any with unknown#244
Leo5878 wants to merge 5 commits intoJasonShin:mainfrom
Leo5878:fix/replace-any-with-unknown

Conversation

@Leo5878
Copy link
Contributor

@Leo5878 Leo5878 commented Nov 30, 2025

This is one of the changes for my issue about generating types using unknown instead of any.
I tried to fix the tests, but I didn’t really manage to.

Copy link
Owner

@JasonShin JasonShin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, it's a great improvement to enforce stricter typing where sqlx-ts cannot infer proper types "yet" and encourages consumers to properly acknowledge and handle the unknown type (aka alias it or type-guard it)

@JasonShin
Copy link
Owner

I don't have a permission to push to this branch, so I created a new one here #264 🙏

Thanks for your contributions!

@JasonShin JasonShin closed this Mar 10, 2026
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.

2 participants