@here.build/arrival-types-bridge
v0.10.0
Published
Scheme→virtual-TypeScript type-lens emitter (emitTypes, ident serde) and the parse/desugar/scope front it runs on. Shared by the editor lens and the Mercury compiler.
Maintainers
Readme
@here.build/arrival-types-bridge
Scheme → virtual TypeScript for the type lens: emitTypes, lossless ident serde
(encodeSchemeIdent / schemeifyTsText), and the parse/desugar/scope front
those run on.
Arrival-lsp and arrival-codemirror consume this package. Mercury (out of this repository) re-exports the same emitter.
Install
pnpm add @here.build/arrival-types-bridgeimport { emitTypes, schemeifyTsText } from "@here.build/arrival-types-bridge";
const { ts, mappings } = emitTypes(`(define (f x) (string-append x "!"))`);
schemeifyTsText("string$dash$append"); // "string-append"Subpaths
| Export | For |
| --------- | ------------------------------------------------------------------ |
| . | emitTypes, schemeifyTsText, ident serde |
| ./front | parse / desugar / scope (parseSexprs, desugar, resolveNames) |
| ./names | cleanName, nameCandidates, RESERVED |
