# Getting started with TypeScript and Apollo

DevFeed: [Getting started with TypeScript and Apollo](<https://devfeed.tech/articles/getting-started-with-typescript-and-apollo-23315.md>)

Original publisher: [Read original article](<https://www.apollographql.com/blog/getting-started-with-typescript-and-apollo-a9aa2c7dcf87>)

Author: James Baxley III

Published: 2017-07-27T18:11:00Z

Content type: tutorial

Language: en

Sources: [Apollo Blog](<https://devfeed.tech/sources/apollo-blog.md>)

Topics: [TypeScript](<https://devfeed.tech/topics/typescript.md>), [GraphQL](<https://devfeed.tech/topics/graphql.md>), [apollo-client](<https://devfeed.tech/topics/apollo-client.md>), [React](<https://devfeed.tech/topics/react.md>), [Code generation](<https://devfeed.tech/topics/code-generation.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [apollo-client](<https://devfeed.tech/tags/apollo-client.md>), [frontend](<https://devfeed.tech/tags/frontend.md>), [generate](<https://devfeed.tech/tags/generate.md>), [graphql](<https://devfeed.tech/tags/graphql.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [react](<https://devfeed.tech/tags/react.md>), [typescript](<https://devfeed.tech/tags/typescript.md>)

## AI overview

A tutorial on strengthening TypeScript type checking in React applications that use Apollo Client and GraphQL. It explains manually defining response types and using apollo-codegen to generate them.

## Source excerpt

When the Apollo team started out to build a flexible and incrementally adoptable GraphQL client, one of the early discussions centered around static typing for the library code. Since the library deals with a complex data types (like the parsed abstract syntax tree of a GraphQL operation), it seemed like making the code type safe was a needed addition.