Commit dccf5b6
committed
test(vue-query): pin suspense() Promise<TResult> parameterization
Adds a regression test asserting that `useQuery(...).suspense()` resolves to
`Promise<QueryObserverResult<TData, TError>>` (parameterized by `TResult` on
`UseBaseQueryReturnType`) and that awaiting it preserves the discriminated
union narrowing on `isSuccess` / `isError`. Closes the verification gap noted
on #10580 — the parameterization was previously only validated via tsc build,
not by an explicit `expectTypeOf` assertion.1 parent a8b5368 commit dccf5b6
1 file changed
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
339 | 364 | | |
340 | 365 | | |
341 | 366 | | |
| |||
0 commit comments