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.11.0
Generate typescript code for typing JSON from Swift Codable.
⭐️ 11
🕓 4 weeks ago
.package(url: "https://github.com/omochi/CodableToTypeScript.git", from: "2.11.0")


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: 4 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Upgrade SwiftTypeReader and SwiftSyntax
4 weeks ago

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