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

TypeFromSelection Utility Type #63

Merged
merged 5 commits into from
Feb 16, 2023
Merged

TypeFromSelection Utility Type #63

merged 5 commits into from
Feb 16, 2023

Conversation

gksander
Copy link
Contributor

@gksander gksander commented Feb 16, 2023

This type will be handy-dandy, especially when extracting sub-queries/selections out into their own files and using their type in e.g. a React component's props. (Had to update some deps for TS satisfies operator.)

Comment on lines +256 to 257
// @ts-expect-error data is unknown type since no grab present
expect("name" in data).toBeTruthy();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually don't know how TS wasn't complaining about this prior to 4.9 🤔

Copy link
Contributor

@carloskelly13 carloskelly13 left a comment

Choose a reason for hiding this comment

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

Fantastic, this will be awesome!

@gksander gksander merged commit 9cd4449 into main Feb 16, 2023
@gksander gksander deleted the types-from-selection branch February 16, 2023 13:40
@github-actions github-actions bot mentioned this pull request Feb 16, 2023
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