types.d.ts) from your local project resources. The command reads your entities, functions, agents, and connectors, and produces a type file that augments the @base44/sdk module with project-specific types. This gives you autocomplete for resource names, compile-time type checking, and typed data when reading or writing entities.
The generated file is written to base44/.types/types.d.ts. If a tsconfig.json file exists in your project root, the command automatically adds base44/.types/*.d.ts to its include array so TypeScript picks up the types without any manual configuration.
Re-run this command whenever you add, remove, or modify a resource to keep the
types in sync.
Usage
What gets generated
Entities generate a TypeScript interface for each entity from its JSON schema. Fields are typed with required/optional markers and nested object types. AnEntityTypeRegistry interface maps each entity name to its generated interface.
Functions, agents, and connectors generate name registries only (FunctionNameRegistry, AgentNameRegistry, and ConnectorTypeRegistry). These list the names of your functions, agents, and connector integration types so your editor can autocomplete them, but they don’t include parameter types, return types, or other configuration details.
See also
- Dynamic Types: Learn how to use generated types in your code
- Entities: Learn about database schema configuration
- Backend Functions: Create serverless API endpoints
- Agent Configurations: Configure AI agents for your app
- Project Structure: How types fit into your project

