When trying to assign Required<T>
(where T
extends A
) to Required<A>
, the operation fails.
Consider this simplified example:
type A = { a?: number };
type B<T extends Required<A>> = T;
type C<T extends A> {
b: B<Required<T>>;
}
Although it seems like it should work, I encountered an error that says
Type 'Required<T>' does not satisfy the constraint 'Required<A>'
. How can I resolve this issue?