Commit 5fa5049
fix: add null check for response.body in mongodb-downloader to fix TS2769
@types/node 22.19.x types Response.body as ReadableStream | null;
the pipeline() overloads don't accept null, so add a null guard before
each pipeline call so TypeScript narrows the type to ReadableStream.
Agent-Logs-Url: https://github.com/mongodb-js/devtools-shared/sessions/3abd748f-532c-4c10-8829-a4eb1ed23cb2
Co-authored-by: nirinchev <2315687+nirinchev@users.noreply.github.com>1 parent df02c6d commit 5fa5049
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| |||
151 | 152 | | |
152 | 153 | | |
153 | 154 | | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
| |||
0 commit comments