43 - Exclude
Author: VarunMendreCreated Sep 6, 2026Updated Sep 6, 2026
Labelsansweren43
type MyExclude<T, U> = T extends U ? never : T;
Source: type-challenges/type-challenges
type MyExclude<T, U> = T extends U ? never : T;
Source: type-challenges/type-challenges