Commit 8538249
feat: improve type safety in command helpers
Improved the type safety of the `pollForToken` function in `src/utils/command-helpers.ts` by removing the `@ts-expect-error` and adding a type guard to safely handle the error object.
Co-authored-by: serhalp <1377702+serhalp@users.noreply.github.com>1 parent 98fdf72 commit 8538249
21 files changed
Lines changed: 1213 additions & 1215 deletions
File tree
- .github/workflows
- docs/commands
- site
- src
- commands
- deploy
- dev-exec
- dev
- functions
- serve
- lib/edge-functions
- utils
- tests
- integration
- commands
- dev
- init
- utils
- unit/lib/edge-functions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | 11 | | |
30 | 12 | | |
31 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments