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

CodableToTypeScript

Generate typescript code for typing JSON from Swift Codable.

Live Demo

https://omochi.github.io/CodableToTypeScript/

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

Requirements

It needs nodejs and typescript for testing.

$ brew install node
$ npm install -g typescript

See below for details.

Testing

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.

GitHub

link
Stars: 11
Last commit: 3 hours ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2.13.0
3 hours ago

What's Changed

Full Changelog: https://github.com/omochi/CodableToTypeScript/compare/2.12.0...2.13.0

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