Types: Prevent `.preview` from making types stricter than necessary
sinclairnick opened this issue · 1 comments
sinclairnick commented
Currently the .preview
function is generic and overrides TProps
when specified after with an equal or more narrow version.
Possible solution: hide the .preview
function until TProps
is specified, and make .preview
non-generic.
sinclairnick commented
.preview()
is no longer generic, but is still shown, to avoid conditional types (for now).