Binding element 'signal' implicitly has an 'any' type
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- typescript
- Área
- tooling
Línea de trabajo
Start by running the TypeScript build that reports the error and inspect src/generated/user/userComponents.ts around line 993. Trace how this generated file is produced to find the relevant generator entry point, then verify that the generated callback no longer triggers TS7031 under the repository's TypeScript configuration.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In the generated code for components, I'm running into a problem due to our TypeScript configuration disallowing implicit any.
The error I get when running tsc as part of our build process:
src/generated/user/userComponents.ts:993:8 - error TS7031: Binding element 'signal' implicitly has an 'any' type.
993 ({ signal }) => fetchGetCurrentUser({ ...fetcherOptions, ...variables }, signal),
It looks like this single line could be fixed by setting a type on the signal property like:
({ signal }: { signal?: AbortSignal }) =>
fetchGetCurrentUser({ ...fetcherOptions, ...variables }, signal),
Either that or defining a type like type SignalOption = { signal?: AbortSignal } and using that there.
Maybe there's a better way to do it to have the compiler infer the type for signal.
It would be nice to have the type explicitly defined to avoid this problem.
- Lenguaje dominante
- TypeScript
- Estrellas
- 634
- Forks
- 83
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 fabien0102/openapi-codegen
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fabien0102/openapi-codegen#343 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
fabien0102/openapi-codegen#342 ·
-
deepMerge mutates its arguments, corrupting request payloads across callsPosiblemente ocupada @richard-willis-chevin la tomó hace 43 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
fabien0102/openapi-codegen#349 ·
-
Error when migrating to typesrcipt v7Posiblemente ocupada @fujikky la tomó hace 42 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
fabien0102/openapi-codegen#348 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
fabien0102/openapi-codegen#344 ·
Todos los issues de fabien0102/openapi-codegen
Issues similares
-
feat(subscription): add Manage Subscription (Stripe portal) to the Subscription tab plan cardAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
[Feature] 通知栏合并重复消息并显示次数Abiertoarea:ui enhancement issue-form:feature platform:cross-platform review: high
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
1lck/Lithe-IDEA#1092 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
developmentseed/deck.gl-raster#693 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Marker-Inc-Korea/AutoRAG#1801 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
iii-hq/iii#2278 · 1 comentario ·
Los mantenedores suelen responder en 1 día