You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Locally, I have defined a set of typescript types that work very well to guide rule creation. I translated the Python classes to JS types here like so:
⭐ Suggestion
It would be awesome to have either autogenerated or manually created types for the Rule type. The current type of
rule
in the napi package isany
:ast-grep/crates/napi/index.d.ts
Line 12 in b8a1b83
Locally, I have defined a set of typescript types that work very well to guide rule creation. I translated the Python classes to JS types here like so:
💻 Use Cases
Anyone who uses the @ast-grep/napi package would benefit from type-checked rules!
Thank you for this package - it's awesome!
The text was updated successfully, but these errors were encountered: