Closed sinclairnick closed 1 year ago
Currently the .preview function is generic and overrides TProps when specified after with an equal or more narrow version.
.preview
TProps
Possible solution: hide the .preview function until TProps is specified, and make .preview non-generic.
.preview() is no longer generic, but is still shown, to avoid conditional types (for now).
.preview()
Currently the
.preview
function is generic and overridesTProps
when specified after with an equal or more narrow version.Possible solution: hide the
.preview
function untilTProps
is specified, and make.preview
non-generic.