Commit 24b134b
committed
fix: TS error in unwatched else-if branch
The new reverse-walk inside the 'getter' in node branch confused
tsslint's type inference because `node.depsTail` is narrowed to
`Link` after the `!== undefined` check, but the loop variable
needs to accept `Link | undefined` for the `link = prev` step.
Import `Link` from system.js and annotate both `link` and `prev`
explicitly.1 parent e8d2791 commit 24b134b
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments