Bug: React-Map createCustomEqual no overloads matches call.
@amuramoto ci sta già lavorando.
Dal 8/7/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Operating system
Windows 10 21H2
Browser Version
Firefox 102.0
How severe is the bug?
high
Bug description
Checking the custom hook for deep comparisons, the method createCustomEqual in deepCompareEqualsForMaps (line 213, in react-maps/docs/index.tsx), does not recognize both a and b:
(deepEqual) => (a: any, b: any)
throws the following error:
No overload matches this call.
Overload 1 of 2, '(getComparatorOptions: GetComparatorOptions<undefined>): <A, B>(a: A, b: B, meta?: undefined) => boolean', gave the following error.
Value of type '(a: any, b: any) => any' has no properties in common with type 'Partial<CreateComparatorCreatorOptions<undefined>>'. Did you mean to call it?
Overload 2 of 2, '(getComparatorOptions: GetComparatorOptions<undefined>): <A, B>(a: A, b: B, meta?: undefined) => boolean', gave the following error.
Value of type '(a: any, b: any) => any' has no properties in common with type 'Partial<CreateComparatorCreatorOptions<undefined>>'. Did you mean to call it?ts(2769),
index.d.ts(16, 42): The expected type comes from the return type of this signature.
index.d.ts(16, 42): The expected type comes from the return type of this signature.
And also the deepEqual(a , b); call throws the error:
This expression is not callable.
Type 'CreateComparatorCreatorOptions<undefined>' has no call signatures.ts(2349)
I guess both things are related to some Typescript error using fast-equals library. I also tried cloning the repository and the same problems are still showing up.
Steps to reproduce
No response
Console log output
No response
- Lingua principale
- TypeScript
- Stelle
- 804
- Fork
- 826
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di googlemaps/js-samples
-
Advanced Markers Animation Unused VariableForse già presa @treckstar l’ha presa 832 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
googlemaps/js-samples#1794 ·
-
DriverAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 5/100
googlemaps/js-samples#1940 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
googlemaps/js-samples#1932 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
googlemaps/js-samples#1914 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
googlemaps/js-samples#1827 · 1 commento ·
Tutte le issue di googlemaps/js-samples
Issue simili
-
pending close triaging
Difficoltà 1/5 1-3 ore Idoneità per principianti 74/100
anomalyco/opencode#63090 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
ai-driven-qa bug claude Cosmetic
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
ai-driven-qa bug claude Minor
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
linagora/twake-mail-admin#609 ·
I maintainer di solito rispondono entro 1 giorno