Better Types around Components
This one took the effort of many resident TypeScript experts, but we've now landed on some better types for components. The biggest change is Component no longer has an opinion on whether it should have children or not. We've added supplementary types ParentComponent and FlowComponent to denote Components that may have children or always have children. And we've added VoidComponent for those which may never have children.
Getting the following TS error for all the
solid-dnd
components.solidjs updated their type definition of
Component
in v1.4.0. A copy from their release notes: https://github.com/solidjs/solid/releases/tag/v1.4.0