Solutionunvalidated
use it. — Since your basic type for the generics is ValueType (and not P). Tension: the inference makes it hard for the ts compiler. Outcome: const { value1, ...rest } = props as any; const compProps = { ...rest, value: value1 };.
96ad7620-a429-41cd-b3e8-224fd092acd5
use it. — Since your basic type for the generics is ValueType (and not P). Tension: the inference makes it hard for the ts compiler. Outcome: const { value1, ...rest } = props as any; const compProps = { ...rest, value: value1 };.