Registry / gcp / firebase-bolt-transpiler

firebase-bolt-transpiler

JSON →
library0.1.0jsnpmunverified

Transpile Firebase Bolt type definitions to TypeScript interfaces. Current version 0.1.0, experimental. No active maintenance. Converts Bolt schemas like 'type Person { name: String }' to TypeScript interfaces. Limited by Bolt compiler's handling of arrays and inheritance. Alternatives: write TypeScript manually.

gcp
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CommonJS only; no ESM module available.

const boltTranspiler = require('boltTranspiler');

Function name is lowercase 'typescript'.

boltTranspiler.typescript('type Person { name: String }')

Not yet implemented; returns undefined.

boltTranspiler.swift('type Person { name: String }')

Demonstrates transpiling a simple Bolt type definition to TypeScript interface.

const boltTranspiler = require('boltTranspiler'); const boltCode = `type Person { name: String age: Number address: String? }`; const tsOutput = boltTranspiler.typescript(boltCode); console.log(tsOutput); // Output: // interface Person { // name: string; // age: number; // address?: string; // }
Debug
Known footguns
breakingArray types (e.g. Object[]) are not translated to arrays; they become Map<String, Object> generics.
breakingExtendedObject extends Object {} does not produce 'extends Object' in output; Bolt compiler marks everything as derived from Object.
gotchaPackage is abandoned; no releases or updates since 2016.
gotchaSwift and Java transpilation methods are documented but not implemented.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
ahrefsbot
4
gptbot
3
claudebot
3
amazonbot
2
Resources