Commit a8fddeb
authored
Improve type declarations (#67)
* Indicate that a CustomStringCallback can return undefined to
indicate that no custom behavior should be applied for that node.
* Allow WalkCallback to return false. Otherwise, a callback that may
or may not prevent further traversal can't be expressed in
TypeScript, since it doesn't allow a function to only return a value
some of the time.1 parent caeda65 commit a8fddeb
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
0 commit comments