Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

typeDiagram is a tiny, language-neutral DSL for describing **algebraic data types** — records, tagged unions, generics, aliases. From one `.td` file, you get:

- **Source code** in TypeScript, Python, Rust, Go, and C# — DTOs, data classes, discriminated unions, pattern-matchable enums — generated from the same definition, always in sync.
- **Source code** in TypeScript, Python, Rust, Go, C#, and PHP — DTOs, data classes, discriminated unions, pattern-matchable enums — generated from the same definition, always in sync.
- **SVG diagrams** with automatic orthogonal layout — no dragging, no fiddling, versionable in git.
- **Round-trip conversion** from existing TypeScript/Python/Rust/Go/C# back to the DSL, so you can retrofit an existing codebase.
- **Round-trip conversion** from existing TypeScript/Python/Rust/Go/C#/PHP back to the DSL, so you can retrofit an existing codebase.

This is not a diagramming tool dressed up with a text input like Mermaid or PlantUML. typeDiagram is a **shared schema for your data model** — the diagram is a side effect, not the goal. The primary output is code, in as many languages as you need, kept strictly in sync by construction.

Expand Down
6 changes: 3 additions & 3 deletions coverage-thresholds.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
"packages/typediagram": {
"statements": 95,
"branches": 90.76,
"functions": 98.5,
"functions": 98.57,
"lines": 95
},
"packages/cli": {
"statements": 96.71,
"statements": 96.72,
"branches": 97.16,
"functions": 99,
"lines": 96.71
"lines": 96.72
},
"packages/web": {
"statements": 95.43,
Expand Down
Loading
Loading