Skip to content

fix(napi-derive): add more cases for typegen of function args #2210

Merged
Brooooooklyn merged 3 commits intonapi-rs:mainfrom
CPunisher:fix/nested-typing
Aug 8, 2024
Merged

fix(napi-derive): add more cases for typegen of function args #2210
Brooooooklyn merged 3 commits intonapi-rs:mainfrom
CPunisher:fix/nested-typing

Conversation

@CPunisher
Copy link
Contributor

fixes #1705

This intuitive change might be enough for most situations.
Since it's a type declaration, it might be simpler not to expand pattern, e.g. Options { a, b }: Options => options: Options.

@CPunisher CPunisher changed the title fix: add more cases for typegen of function args fix(typegen): add more cases for typegen of function args Aug 6, 2024
@Brooooooklyn Brooooooklyn changed the title fix(typegen): add more cases for typegen of function args fix(napi-derive): add more cases for typegen of function args Aug 8, 2024
@Brooooooklyn Brooooooklyn merged commit a154612 into napi-rs:main Aug 8, 2024
Brooooooklyn pushed a commit that referenced this pull request Aug 10, 2024
* Handle more arg pat

* Update testcase

* Revert
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.

fix: argument struct destruction causes wrong typing generation

2 participants