We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
export declare class
export class
current behavior: NAPI currently generates class declarations in the d.ts file that look like this:
d.ts
export class Foo { foo1(): void get foo2(): void }
This is not valid in a class definition.
class
expected behavior: a class declaration:
export declare class Foo { foo1(): void get foo2(): void }
Not totally sure where a PR to fix this would go, I glanced at https://github.com/napi-rs/napi-rs/blob/b2239fd880fa40fa98d206d8f31aec1bb8a0ce12/crates/backend/src/typegen/struct.rs but didn't see an obvious answer
The text was updated successfully, but these errors were encountered:
declare
Successfully merging a pull request may close this issue.
current behavior: NAPI currently generates class declarations in the
d.ts
file that look like this:This is not valid in a
class
definition.expected behavior: a
class
declaration:Not totally sure where a PR to fix this would go, I glanced at https://github.com/napi-rs/napi-rs/blob/b2239fd880fa40fa98d206d8f31aec1bb8a0ce12/crates/backend/src/typegen/struct.rs but didn't see an obvious answer
The text was updated successfully, but these errors were encountered: