Commit c8ec759
committed
fix(typescript): resolve type errors in gasless deposit tests
Add type assertions to test cases that intentionally use invalid
chain names for error handling validation. This fixes TypeScript
compilation errors while preserving the runtime validation tests.
Changes:
- test/services/deposits.test.ts: Add 'as GaslessDestination' type
assertions to 5 test cases that verify rejection of invalid chain
names (Optimism, arbitrum, InvalidChain, empty string)
- api-reference/classes/DepositsService.md: Update parameter type
documentation from 'string' to 'GaslessDestination'
The type assertions allow TypeScript to compile while the tests
still properly validate runtime error handling for unsupported
chain names.1 parent 182add9 commit c8ec759
File tree
2 files changed
+6
-6
lines changed- typescript
- api-reference/classes
- test/services
2 files changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
| 469 | + | |
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3263 | 3263 | | |
3264 | 3264 | | |
3265 | 3265 | | |
3266 | | - | |
| 3266 | + | |
3267 | 3267 | | |
3268 | 3268 | | |
3269 | 3269 | | |
| |||
3273 | 3273 | | |
3274 | 3274 | | |
3275 | 3275 | | |
3276 | | - | |
| 3276 | + | |
3277 | 3277 | | |
3278 | 3278 | | |
3279 | 3279 | | |
| |||
3283 | 3283 | | |
3284 | 3284 | | |
3285 | 3285 | | |
3286 | | - | |
| 3286 | + | |
3287 | 3287 | | |
3288 | 3288 | | |
3289 | 3289 | | |
| |||
3748 | 3748 | | |
3749 | 3749 | | |
3750 | 3750 | | |
3751 | | - | |
| 3751 | + | |
3752 | 3752 | | |
3753 | 3753 | | |
3754 | 3754 | | |
| |||
3758 | 3758 | | |
3759 | 3759 | | |
3760 | 3760 | | |
3761 | | - | |
| 3761 | + | |
3762 | 3762 | | |
3763 | 3763 | | |
3764 | 3764 | | |
| |||
0 commit comments