Open jacopo-trompeo opened 3 months ago
At some point, the developer of KitaJS/Html separated some types out of the Html namespace. Among these were Children
and PropsWithChildren
. The consequence of this is that Elysia/Html no longer includes these types implicitly. To solve the issue, perhaps
export { Html } from '@kitajs/html';
can be changed to
export * from '@kitajs/html';
I'm trying to define a layout that takes in some children, but it doesn't look like the library exports a type for it.
Here's the
index.d.ts
for @elysiajs/html version^1.1.0
I saw some examples saying I should use
Html.Children
orHtml.PropsWithChildren
, but those are not properties in my Html object. I do however see that kitajs exports a PropsWithChildren type that is not being exposed by the elysia html library.Can anyone tell me if I'm maybe doing something wrong?
Thanks