developit / developit/vhtml

How do I use this with TypeScript?

Abierto
#19 7 comentarios 1 reacción 0 asignados Ver en GitHub
Lenguaje dominante
JavaScript
Estrellas
814
Forks
37
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

I can figure out the:

```
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "h",
},
}
```

But I can't figure out how to get the typings going for `h` and things like `children`,

Specifically the error I'm getting on any JSX element is:

> JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists.ts(7026)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

No repository file or test is named. Start by reviewing the TypeScript compilerOptions shown in the issue and the JSX typing requirements behind the reported TS7026 error. Done means documenting or demonstrating how to configure typings for h, children, and JSX elements when using vhtml with TypeScript.

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

Evaluación

Stack tecnológico
typescript
Área
frontend
Tipo de issue
Documentación
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.