Commit ae53355
authored
Allow visitors to return undefined
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.1 parent ff5d245 commit ae53355
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4350 | 4350 | | |
4351 | 4351 | | |
4352 | 4352 | | |
4353 | | - | |
| 4353 | + | |
4354 | 4354 | | |
4355 | 4355 | | |
4356 | 4356 | | |
| |||
0 commit comments