https://github.com/fny/firebase-bolt-transpiler
Transpile Bolt type definitions to TypeScript
https://github.com/fny/firebase-bolt-transpiler
Last synced: about 1 year ago
JSON representation
Transpile Bolt type definitions to TypeScript
- Host: GitHub
- URL: https://github.com/fny/firebase-bolt-transpiler
- Owner: fny
- Created: 2016-07-06T09:23:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T10:57:12.000Z (over 6 years ago)
- Last Synced: 2025-03-26T02:04:40.124Z (about 1 year ago)
- Language: JavaScript
- Size: 9.77 KB
- Stars: 9
- Watchers: 3
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Firebase Bolt Transpiler :zap:
[](https://travis-ci.org/fny/firebase-bolt-transpiler) [](http://badge.fury.io/js/firebase-bolt-transpiler) [](https://david-dm.org/fny/firebase-bolt-transpiler)
Transpile your Bolt files into TypeScript! Java and Swift coming soon.
Featuring `GenericSupport` and `NestedGenericSupport>>`
## Usage
const boltTranspiler = require('boltTranspiler');
boltTranspiler.typescript('type Person { name: String }')
// => 'interface Person { name: string; }'
## Known Issues
- `type ExtendedObject extends Object {}` doesn't return `interface ExtendedObject extends Object {}` since the Bolt compiler marks everything as derived from `Object` by default
- Array types (e.g. `Object[]`) aren't tranlated to arrays in TypeScript since the Bolt compiler turns all arrays into `Map` generics
## Wishlist
- Better TypeScript formatting
- Validate generated TypeScript with the TypeScript parser
- Ability to prefix/suffix generated interface names
- Commandline tools
- Better samples
- Extensions for Gulp users
- Swift support
- Java support