Skip to content

Node generator emits FfiConverterBytes references without defining it #30

@criccomini

Description

@criccomini

Summary

Generated TypeScript for Node references FfiConverterBytes, but the symbol is never imported or declared.

Repro

Generate bindings with uniffi-bindgen-node generate .... The generated slatedb-node.ts contains call sites like:

let keyArg = FfiConverterBytes.lower(key);

but the import block only brings in FfiConverterArrayBuffer, and there is no alias or declaration for FfiConverterBytes.

Expected

The generated output should either import or emit FfiConverterBytes, or define an alias such as:

const FfiConverterBytes = FfiConverterArrayBuffer;

Actual

Consumers have to patch the generated file after codegen to avoid runtime failures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions