-
-
Notifications
You must be signed in to change notification settings - Fork 821
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
Static Typing #6
Comments
@jbaxleyiii I think static typing would be nice to have, but I'm a bit torn. Apollo-client is essentially standalone, so the choice of going with typescript made sense. Because apollo-server relies heavily on graphql-js, which is written in flow, I don't think it would make sense to use typescript for it. We could use flow for apollo-server, but then we'd have the client written in typescript and the server written in flow, which also isn't ideal. I'm definitely open to using static typing, but because of the above I think it would have to be Flow, and not Typescript. Do you think the benefits of static typing in apollo-server will be worth adding another language to our stack? |
@helfer fwiw, we found that I'm open to whatever though 👍 |
Let me write a bit more code in JavaScript and then see what the equivalent On Thu, Mar 31, 2016 at 4:23 PM, James Baxley [email protected]
|
@helfer sounds great! Just wanted to offer help :) |
Yeah, thanks, I really appreciate it! |
@jbaxleyiii I've added some relatively intricate logic for mocking in the last few days, and I sometimes wished I had static typing. If you have some time next week to make a typescript branch, that would be great! |
@helfer happily! It'll help me get a feel for what's happening as well so I can contribute! |
awesome, thanks a lot! On Sat, Apr 9, 2016 at 4:51 AM, James Baxley [email protected]
|
@jbaxleyiii Any update on this? |
@helfer sadly no 👎 It is still on my to-do list! With vacation and coming out to SF I haven't gotten to it yet. I'm hoping to finish it this weekend |
No worries, I was just going through all the issues to see which ones I could close :) |
Closing this since I don't think it's on our immediate agenda any more now that Apollo Server has been rewritten in TypeScript. |
Are there any plans to make typings for this? |
Yes, @pcarrier is converting things to TypeScript as we speak. |
@helfer do you want me to go through and setup typescript like we did with apollo-client?
The text was updated successfully, but these errors were encountered: