TypeScript as Data

2026-10-07来源 dev.to TypeScriptEnglish

Hello TypeScript people.

TypeScript as Data is for configuration, read as data and never run.

https://intentius.io/typescript-as-data

This is useful for building a round trip compiler around any JSON spec. Import and export the spec, without executing it.

The lack of execution brings determinism guarantees.

Contrast this with the use of something like Pkl for IaC to get a better idea of why it exists.

Feedback is welcome, thank you.

原文:https://www.a8q9.cn/en/article/typescript-as-data-2fa9d9.html

相关文章