0.1.0 • Published 9 years ago
firebase-bolt-transpiler v0.1.0
Firebase Bolt Transpiler :zap:
Transpile your Bolt files into TypeScript! Java and Swift coming soon.
Featuring GenericSupport<T> and NestedGenericSupport<NestedGenericSupport<GenericSupport<T>>>
Usage
const boltTranspiler = require('boltTranspiler');
boltTranspiler.typescript('type Person { name: String }')
// => 'interface Person { name: string; }'Known Issues
type ExtendedObject extends Object {}doesn't returninterface ExtendedObject extends Object {}since the Bolt compiler marks everything as derived fromObjectby default- Array types (e.g.
Object[]) aren't tranlated to arrays in TypeScript since the Bolt compiler turns all arrays intoMap<String, Object>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
0.1.0
9 years ago