TypeScript App quick guide
TypeScript is under development and not release ready. Follow the manual's development status and SDK prerequisites before starting or changing a TypeScript App.
The installed
@libertas-ai/types
index.d.ts owns exact runtime APIs. The
TypeScript manual owns full language behavior; use
the annotation inventory for every JSDoc tag.
What to load
- The TypeScript App rules card: every SDK, project, discovery, export, type-mapping, JSDoc, decorator-spelling, protocol, persistent data and string resource rule generated from the manual.
- The code organization card for module boundaries, explicit type exports and thin entry functions, with the manual's TypeScript layout.
- The shared cards for the meaning of what the decorators declare: App design, documentation, protocols and runtime and its feature cards, persistent data, calculations, validation rules, presentation, messages (LMF1), AI Import, data-type evolution and Matter.
Where the manual helps most
- Project configuration baseline:
the strict
tsconfig.jsonfor a new ESM App. - Enumerations and discriminated unions: the three enumeration forms and numeric first-field discriminators.
- Optional types:
stringwith an empty Default versus?,| nulland| undefined. - Formatted runtime text:
libertasFormattedTextwith typed argument objects under the messages card.