Commit abe44fc
build(types): fix a few type errors (#7834)
This commit improves type safety in two leaf-node modules by removing `@ts-expect-error` and implicit `any` types.
In `src/lib/string.ts`, the `capitalize` function was updated to use explicit `string` types for its parameters, eliminating the implicit `any` types.
In `src/lib/geo-location.ts`, the `@ts-expect-error` in the `getGeoLocationFromAPI` function was removed by adding a type assertion to the `res.json()` call, ensuring the `geo` property is correctly typed.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Co-authored-by: Philippe Serhal <[email protected]>1 parent ed232eb commit abe44fc
2 files changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
0 commit comments