Skip to content

Specify ts type for input and output values #4

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

Open
mstn opened this issue Apr 25, 2017 · 1 comment
Open

Specify ts type for input and output values #4

mstn opened this issue Apr 25, 2017 · 1 comment

Comments

@mstn
Copy link
Contributor

mstn commented Apr 25, 2017

For example, I could use two types Credentials and LoggedInUser for input and output. It would be interesting to see if I can type check these types against GraphQL specs. It must be done at run time... so unlikely... but who knows.

js const LoginForm = apolloForm<Credentials, LoggedInUser>(login, { onSubmitSuccess(result: LoggedInUser ) { // do something } });

@mstn
Copy link
Contributor Author

mstn commented Jan 12, 2018

Perhaps we can expose the underlying graphql generics.

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

No branches or pull requests

2 participants