Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow generic to be left out in PropsWithChildren type
Many components take only `children` as a prop, and nothing else. Defaulting the generic helper type `PropsWithChildren` to `{}` allows the consumer to use it as simply `props: PropsWithChildren` instead of the awkward-looking `props: PropsWithChildren<{}>`.
- Loading branch information