Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardTypeScriptmethod bivariance / strictFunctionTypesSingle-choice MCQ

Which is the inferred type T (with strictFunctionTypes)?

class A {} class B extends A {}\ntype F<X> = (x: X) => void;\ntype T = F<B> extends F<A> ? true : false;