Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Add SelectionResult type to make type alias extraction easier #111

Merged
merged 1 commit into from
Apr 29, 2022

Conversation

lorefnon
Copy link
Contributor

Resolves #109

@vercel
Copy link

vercel bot commented Apr 20, 2022

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/timkendall/tql/CDT7QWfeYVKzxbbKie6VZkNR2aHG
✅ Preview: https://tql-git-fork-lorefnon-expose-sel-result-timkendall.vercel.app

@@ -81,3 +83,9 @@ type HasInlineFragment<T extends SelectionSet<any> | undefined> = T extends Sele
: never;

type Merge<M, N> = Omit<M, keyof N> & N;

export type SelectionResult<TSelection> =
Copy link
Owner

Choose a reason for hiding this comment

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

Ah yeah I was planning on actually making this the default for our standard Result type. Thoughts on renaming our existing Result to InnerResult instead (so we can export this higher-level API as Result)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, that sounds better.

I wanted to avoid a breaking change, but I can update that if you prefer exposing as Result.

Copy link
Owner

Choose a reason for hiding this comment

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

True. Let's go with this for now.

Copy link
Owner

Choose a reason for hiding this comment

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

And as always thank you for your contribution!

@timkendall timkendall merged commit 3337829 into timkendall:master Apr 29, 2022
@timkendall
Copy link
Owner

Published as @timkendall/tql@1.0.0-rc.7, @timkendall/tql@beta, @timkendall/tql-gen@1.0.0-rc.7, @timkendall/tql-gen@latest

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it easier to extract result types
2 participants