Skip to content

feat!: #135 add napi types to bindings#138

Merged
noahbald merged 7 commits intomainfrom
feat/135-structured-napi-bindings
May 5, 2025
Merged

feat!: #135 add napi types to bindings#138
noahbald merged 7 commits intomainfrom
feat/135-structured-napi-bindings

Conversation

@noahbald
Copy link
Owner

No description provided.

@noahbald noahbald self-assigned this Apr 30, 2025
noahbald added 2 commits May 3, 2025 13:01
Note that this gets tests working but prevents types from showing in the
generated types
@noahbald noahbald force-pushed the feat/135-structured-napi-bindings branch from c35dd0d to 74cf653 Compare May 3, 2025 03:15
name: self.node.qual_name().formatter().to_string(),
attributes: self
.node
.attributes()
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved to GeneratePrefix constructor, this would cause borrow error

#[derive(Debug, Clone)]
pub struct PreservePattern(pub regex::Regex);
pub struct PreservePattern {
pub regex: String,
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be pub string so that we can implement FromNapiValue

@noahbald
Copy link
Owner Author

noahbald commented May 5, 2025

napi-rs/napi-rs#2602
reverted field renames

@noahbald noahbald merged commit cd0ce00 into main May 5, 2025
20 checks passed
@noahbald noahbald deleted the feat/135-structured-napi-bindings branch May 7, 2025 11:11
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