Type safety: remove the 22 `any` usages in `web/`

Abierto
#92 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

Start in web/lib/contract.ts, where contract decoding uses any, then search web/app, web/components and web/lib for : any and catch (e: any). Define a RawInvoice type from the decoded shape and add a small helper that turns an unknown error into a message. Done when no explicit any remains in web/, tsc and lint pass, and runtime behaviour is unchanged. The issue does not give the invoice field shape, so check the decoder before typing it.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

difficulty: intermediate help wanted refactor Stellar Wave web

Difficulty: Intermediate

Problem

There are 22 uses of any in web/app, web/components and web/lib (contract decoding and catch (e: any) blocks).

Why it matters

any hides bugs such as the earlier status-decoding mistake.

Scope of work

Define a typed RawInvoice for contract decoding, use catch (e: unknown) with a small helper to extract messages, and enable @typescript-eslint/no-explicit-any as a warning.

Acceptance criteria

  • No explicit any remains in web/.
  • tsc and lint pass.
  • Runtime behaviour unchanged.

Relevant files

  • web/lib/contract.ts, pages and components using catch (e: any)

Dependencies

Coordinate with other PRs touching these files.

Maintainer discussion needed?

No.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
54 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Yormee-103/PayLoop

Todos los issues de Yormee-103/PayLoop

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.