Swiftpack.co - omochi/CodableToTypeScript as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by omochi.
omochi/CodableToTypeScript 2.8.1
Generate typescript code for typing JSON from Swift Codable.
⭐️ 11
🕓 4 weeks ago
.package(url: "https://github.com/omochi/CodableToTypeScript.git", from: "2.8.1")


Generate typescript code for typing JSON from Swift Codable.

Live Demo


This demo site runs CodableToTypeScript on your browser locally by swiftwasm technology. Its also built by CodableToTypeScript, and WasmCallableKit. See source code.

Usage and Example

See test cases.

Development guide


It needs nodejs and typescript for testing.

$ brew install node
$ npm install -g typescript

See below for details.


Test cases generate typescript codes and build them to check generated codes validity. For invocating typescript compiler, it uses $ npx tsc. So you need to install typescript on host globally.

You can skip this step by defining SKIP_TSC environment variable.


Stars: 11
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

4 weeks ago

依存先での変更になるので CodableToTypeScript のコードに変更は無かった しかしこのライブラリのユーザーにとって、 依存するSwiftSyntaxのバージョンを強制的に引っ張られる事になるので、 やはりこれはメジャーバージョンアップになる

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics