> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generated Code

> Auto-generated JavaScript and TypeScript code specific to your app's API

Bijection uses code generation to create code that is specific to your app's data
model and API. Bijection generates JavaScript files (`.js`) with TypeScript type
definitions (`.d.ts`).

Code generation isn't required to use Bijection, but using the generated code will
give you more better autocompletion in your editor and more type safety if
you're using TypeScript.

To generate the code, run:

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection dev
```

This creates a `bijection/_generated` directory that contains:

* [`api.js` and `api.d.ts`](/generated-api/api)
* [`dataModel.d.ts`](/generated-api/data-model)
* [`server.js` and `server.d.ts`](/generated-api/server)
