Describe the bug:
FunctionalComponent doesn't allow returning just children, although code compiles successfully (with // @ts-ignore) and works as expected.
To Reproduce:
// DummyComponent.tsx
import { FunctionalComponent, h } from "preact";
const DummyComponent: FunctionalComponent = ({ children }) => {
return children;
});
export default DummyComponent;
Error in VS Code:
Type 'ComponentChildren' is not assignable to type 'VNode<any> | null'.
Expected behavior:
No errors.