developit / developit/vhtml

How do I use this with TypeScript?

Aperta
#19 7 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
814
Fork
37
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.