Hello,
In example below, I'm able to add a child to MyComponent even it does not include <Slot/>. The runtime behavior is correct (child content not rendered), but how can I type the component to prevent adding child where not allowed or supported?
Any guidance much appreciated. Thanks!
import { component$ } from "@builder.io/qwik";
const MyComponent = component$(() => {
return <div>content</div>;
});
export default component$(() => {
return (
<MyComponent>
<p>
Passes static check, but shouldn't since MyComponent contains no Slot.
</p>
</MyComponent>
);
});