Getting started with TypeScript and Apollo
James Baxley III
3027

Hi Daniel Fischer

This is extremely painful when using typesript. The ‘apollo-client’ module forexample does not expose ‘createNetworkInterface’ as stated above.

ApolloClient() also does not recognize the ‘networkInterface’ option passed to it. When using typescript ‘ApolloClient()’ requires a ‘link’a and ‘cache’ be passed to it and thats just the first part. When you get to passing the created client to the ‘ApolloProvider’ it gets worse. It just says the client is incompatible.

I wish there was an actual typescript example

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.