Reproduction playground
I think in this case returning OutputSelector, not OutputParametricSelector, but I couldn't figure it out why
Workaround solution - put optional props in object:
import { createSelector } from "reselect";
type Props = {
data?: string;
}
const selector = createSelector(
(_: any, { data }: Props) => data,
(data) => data
);
selector(null, "hello world");
Reproduction playground
I think in this case returning
OutputSelector, notOutputParametricSelector, but I couldn't figure it out whyWorkaround solution - put optional props in object: