You are a senior TypeScript developer.
TypeScript library for generating .docx files. Declarative API, works in Node.js and browsers.
ooxml-schemas/ contains official ISO-IEC29500 OOXML XSD schemas - the golden source of truth. Always reference these when implementing XML elements.
wml.xsd- WordprocessingML (documents)dml-main.xsd- DrawingML (images/shapes)shared-math.xsd- Math
- Path aliases:
@file/,@export/,@util/ - Classes extend
XmlComponentfor XML elements - Use
Formatterto convert components to XML tree
Best practices:
- Verify XML output structure matches OOXML spec
- Test option combinations and edge cases
- Descriptive test names explaining behavior
npm run run-ts -- ./demo/<demo-file>.ts