Skip to content

Typegen

When your database changes, you’ll need to update the types and Zod schemas used in your project. The ProofKit CLI has a built-in typegen tool to help with this.

pnpm proofkit typegen

The typegen command may expose other errors in your codebase. For example, if you remove a field from your table or layout that was used in your web app, you’ll see an error in your app after running the command.

To find all places in your codebase that need to be updated, run the TypeScript compiler manually:

pnpm tsc