Closed joetifa2003 closed 1 year ago
kitajs/html has types that should solve this we just need to reexport them
Hey @ethanniser & @SaltyAom. I was looking through the source code and seems that there are things that can better integrate with @kitajs/html and how JSX works in general...
Would you mind on me opening a PR to improve them?
I do think that the safe
mode should be more relevant inside the documentation. We don't want to go back to these old XSS php days.
Also, maybe we should work on re-use jsx.d.ts
from @kitajs/html
, duplicity would be bad here as it is a very long declaration file which could hide features/tags. (I did improve declarations in this latest release)
import { PropsWithChildren } from "@kitajs/html";
I added the package as a dep just to import the type, because i found no way to import this from Elysia html
Also i don't see a way to call @kitajs/html compile from this plugin
The plugin is just a couple days out of date with kita, if someone wants to make a pr it would not be that hard.
I might be able to later tonight
PR is already being done at #13