rn-sql-connect-codegen
v0.1.0
Published
Generates typed rn-sql-connect wrappers from a Firebase-generated Data Connect JavaScript SDK
Maintainers
Readme
rn-sql-connect-codegen
Generates typed TypeScript wrappers for rn-sql-connect from the JavaScript SDK that firebase dataconnect:sdk:generate already produces.
npx rn-sql-connect-codegen --in vendor/dataconnect-generated/example --out src/dataconnect/examplern-sql-connect-codegen: 55 operations (41 queries, 14 mutations) from connector "tramev"
wrote src/dataconnect/example/types.ts
wrote src/dataconnect/example/index.tsThe emitted functions keep the same names as the web SDK, so migrating a call site is a change of import path and nothing else. The output has no dependency on the firebase package, and the generator fails the whole run rather than emitting a partial SDK.
Full documentation: code generation guide.
License
Apache-2.0
