Type check oddity
See original GitHub issueIts not high priority, and possibly not even an issue of your code, but I installed rc-3 and get an eslint error:
ERROR in c:/some/path/node_modules/@vueuse/core/dist/index.d.ts(351,17):
351:17 Cannot find name 'Coordinates'.
349 | declare function useGeolocation(options?: GeolocationOptions): {
350 | isSupported: boolean | undefined;
> 351 | coords: Ref<Coordinates>;
| ^
352 | locatedAt: Ref<number | null>;
353 | error: Ref<{
354 | readonly code: number;
Version: typescript 4.1.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
How do I check if an integer is even or odd? - Stack Overflow
Use the modulo (%) operator to check if there's a remainder when dividing by 2: if (x % 2) { /* x is...
Read more >Python Oddities Explained - Trey Hunner
If it looks like a duck and quacks like a duck, it's a duck; Don't type check: rely on specific behaviors instead; "Iterable"...
Read more >Transaction Oddities (comparison, field splitting, click vs. type)
I'm getting odd returns for a transaction in which the final search operator works one way for exact matches (value=3.444), but not for...
Read more >[Agda] Agda type inference oddity on functions
I mean "accepted by the Agda type-checker without unsolved metas", ... In this example, I was expecting the type inference algorithm to ...
Read more >A collection of Java curiosities and oddities - Kevin Boone
All the methods for sorting arrays, regardless of type, in java.util. ... always test for equality of reference; that is a separate oddity, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DarkXanteR If you don’t want to bump your TS version, maybe you can set this in tsconfig.json
I had the same problem. Since TypeScript 4.1.2, Coordinates has been removed and replaced with GeolocationCoordinates.