base44 types generate
Generate TypeScript declaration file (types.d.ts) from project resources (entities, functions, agents, connectors).
Usage
What It Does
- Reads project configuration — Scans
base44/entities/,base44/functions/,base44/agents/, andbase44/connectors/for all defined resources - Generates
base44/.types/types.d.ts— Creates a TypeScript declaration file that augments the@base44/sdkmodule with typed registries - Updates
tsconfig.json(if present) — Automatically addsbase44/.types/*.d.tsto theincludearray so TypeScript picks up the generated types
Authentication
Not required. This command runs entirely locally and does not need authentication.Output File
The generated file is placed at:Generated Content
The declaration file augments the@base44/sdk module with four registries:
EntityTypeRegistry— Maps entity names to their TypeScript interfaces (compiled from entity JSON schemas)FunctionNameRegistry— Lists all backend function namesAgentNameRegistry— Lists all agent namesConnectorTypeRegistry— Lists all connector types
tsconfig.json Integration
If atsconfig.json exists in the project root, the command automatically adds base44/.types/*.d.ts to the include array:
tsconfig.json exists, this step is silently skipped.
When to Run
- After creating or modifying entity schemas in
base44/entities/ - After adding or removing backend functions in
base44/functions/ - After adding or removing agents in
base44/agents/ - After adding or removing connectors in
base44/connectors/ - When setting up a TypeScript project for the first time with Base44
Notes
- The generated file should not be manually edited — it will be overwritten on the next run
- Consider adding
base44 types generateto your build pipeline or as a pre-build script - The
.typesdirectory is created automatically inside thebase44/folder

