Skip to content

Allow visitors to return undefined#17044

Merged
rbuckton merged 1 commit into
microsoft:masterfrom
filipesilva:patch-1
Jul 10, 2017
Merged

Allow visitors to return undefined#17044
rbuckton merged 1 commit into
microsoft:masterfrom
filipesilva:patch-1

Conversation

@filipesilva
Copy link
Copy Markdown
Contributor

@filipesilva filipesilva commented Jul 9, 2017

While implementing ts.Visitor, it is possible to return undefined in order to drop a node. However, the typings do not reflect this and only allow to return Node | Node [].

This PR extends the typings to allow undefined as well.

/cc @mhegazy @rbuckton

While implementing `ts.Visitor`, it is possible to return `undefined` in order to drop a node. However, the typings do not reflect this and only allow to return `Node | Node []`.

This PR extends the typings to allow `undefined` as well.
@msftclas
Copy link
Copy Markdown

msftclas commented Jul 9, 2017

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

Copy link
Copy Markdown
Contributor

@rbuckton rbuckton left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@rbuckton rbuckton merged commit bb3253e into microsoft:master Jul 10, 2017
@filipesilva filipesilva deleted the patch-1 branch July 10, 2017 18:49
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants