Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong walk callback type definition #38

Closed
uramer opened this issue Jan 11, 2023 · 0 comments
Closed

Wrong walk callback type definition #38

uramer opened this issue Jan 11, 2023 · 0 comments

Comments

@uramer
Copy link
Contributor

uramer commented Jan 11, 2023

Currently it's

export function walk(node: AST, cb: (node: AST, parentNode: AST) => {}): void;

which requires returning an empty object. It should instead be

export function walk(node: AST, cb: (node: AST, parentNode: AST) => void): void;
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

No branches or pull requests

1 participant