Skip to content

feat(napi-derive): support type on #[napi]#2416

Merged
Brooooooklyn merged 2 commits intonapi-rs:mainfrom
lghuahua:feat_impl_napi_for_type
Jan 2, 2025
Merged

feat(napi-derive): support type on #[napi]#2416
Brooooooklyn merged 2 commits intonapi-rs:mainfrom
lghuahua:feat_impl_napi_for_type

Conversation

@lghuahua
Copy link
Copy Markdown
Contributor

@lghuahua lghuahua commented Jan 2, 2025

Now types can be added using dtsHeader and dtsHeaderFile, but I think it is also possible to generate part of the types using macros. This would make it easier to align Rust types with TypeScript types.

@Brooooooklyn Brooooooklyn changed the title feat: support type on #[napi] feat(napi-derive): support type on #[napi] Jan 2, 2025
@Brooooooklyn Brooooooklyn force-pushed the feat_impl_napi_for_type branch from 3c5cb96 to 83d745d Compare January 2, 2025 09:09
@Brooooooklyn Brooooooklyn merged commit 31cd07c into napi-rs:main Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants