# Generate TypeScript library

GraphQL Editor offers an easy way to generate autocomplete JS/TS clients for Browser/Node/React Native. Working with a generated client provides an easy and **type-safe** way for developers to work with their schema. To generate an autocomplete library your schema should  at least have a **root schema Query type.**

To generate a GraphQL Client:

1. Click the Export schema icon
2. Select Export autocomplete libraries

<figure><img src="https://2595489265-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LkU3PZk9D4XQW0UI1bP%2Fuploads%2FaCzi9PLvT0ReX5Mc9M6q%2Fimage.png?alt=media&#x26;token=70d7858d-c67e-47c7-a86d-af028984f730" alt=""><figcaption><p>Export option in the menu</p></figcaption></figure>
