Skip to content

feat: automatically transform dts with jscodeshift#23

Merged
seokju-na merged 8 commits intomainfrom
automatically-transform-dts
Jan 27, 2025
Merged

feat: automatically transform dts with jscodeshift#23
seokju-na merged 8 commits intomainfrom
automatically-transform-dts

Conversation

@seokju-na
Copy link
Collaborator

Since napi does not support union types when converting rust enum types into TypeScript (plan in v3), we had to change the dts file manually.
To reduce human errors, crated a script that automatically converts dts using jscodeshift.

I think gritQL can be used more universally, but I'm not familiar with it yet, so I'm leaving it as a todo. (Another option is to wait until napi supports it. lol)

@seokju-na seokju-na merged commit 01729ea into main Jan 27, 2025
18 checks passed
@seokju-na seokju-na deleted the automatically-transform-dts branch January 27, 2025 17:26
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.

1 participant