Bug: React-Map createCustomEqual no overloads matches call.
@amuramoto ya está trabajando en esto.
Desde el 8/7/2022.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 804
- Forks
- 826
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de googlemaps/js-samples
-
Advanced Markers Animation Unused VariablePosiblemente ocupada @treckstar la tomó hace 833 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
googlemaps/js-samples#1794 ·
-
DriverAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
googlemaps/js-samples#1940 ·
-
Exposed api key in documentationAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
googlemaps/js-samples#1932 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
googlemaps/js-samples#1914 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
googlemaps/js-samples#1827 · 1 comentario ·
Todos los issues de googlemaps/js-samples
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
excalidraw/excalidraw#12590 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Automattic/data-liberation-agent#1657 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
HGInsights/hgi-cli#23 ·
Los mantenedores suelen responder en 1 día
-
Impact: 3-Minor Scope: Core
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 74/100
sugarlabs/musicblocks-v4#1029 · 1 comentario ·
Los mantenedores suelen responder en 2 días