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