everything-dev
Version:
A consolidated product package for building Module Federation apps with oRPC APIs.
15 lines (12 loc) • 775 B
Markdown
# Generated Types
| File | Contents | Regenerated by |
|------|----------|---------------|
| `api/src/lib/plugins-types.gen.ts` | `PluginsClient` — factory types for all plugins | `bos types gen` |
| `api/src/lib/auth-types.gen.ts` | Auth plugin request context types | `bos types gen` |
| `ui/src/lib/api-types.gen.ts` | `ApiContract` — all procedure types | `bos types gen` |
| `ui/src/lib/auth-types.gen.ts` | Auth client session/user types | `bos types gen` |
Type resolution:
- `local:plugins/<name>` → reads `src/contract.ts` directly from disk
- Remote URL → fetches contract types from the deployed plugin's manifest
- Missing local path with no URL → skipped with a warning
- Run `bos types gen` or restart `bos dev` after hand-editing `bos.config.json`