TypeChat is a type-safe AI library from Microsoft that bridges natural language and TypeScript types. Define interfaces and use LLMs to produce typed JSON responses. Validates outputs against your schemas, auto-generates UI forms, and enables natural language programming with full IDE support.