Skip to content

napi/transform: ts declaration file - incorrect Es2015BindingOptions interface name #6254

@marcalexiei

Description

@marcalexiei

Es2015BindingOptions interface is declared here:

export interface Es2015BindingOptions {

however when used inside TransformOptions it has the wrong name: ES2015BindingOptions (the S is uppercased)

es2015?: ES2015BindingOptions

So when compiling with typescript using skipLibCheck: false this cause the following error:

node_modules/.pnpm/[email protected]/node_modules/oxc-transform/index.d.ts:195:12 - error TS2552: Cannot find name 'ES2015BindingOptions'. Did you mean 'Es2015BindingOptions'?

195   es2015?: ES2015BindingOptions

I noticed that this file is generated using napi-rs:

/* auto-generated by NAPI-RS */

So I assume I can't simply fix the typo and send a PR 😅.
After a quick search in the source code I'm unable to find any reference for the incorrect name (Es2015BindingOptions) expect the one in the declaration file, I found only ES2015BindingOptions.

I'm not familiar with rust project so I can't provide additional information 😢.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory - Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions