Could isTypeAssignableTo be exposed on the type-checker for use by API consumers? This would be helpful for analyzing code using type information. I would like to check instanceof expressions for assignability in a lint rule (palantir/tslint#2046).
getBaseConstraintOfType would also be useful for doing checks inside generic functions.
isTypeAssignableTo would also be useful for a no-unnecessary-cast rule.
Could
isTypeAssignableTobe exposed on the type-checker for use by API consumers? This would be helpful for analyzing code using type information. I would like to checkinstanceofexpressions for assignability in a lint rule (palantir/tslint#2046).getBaseConstraintOfTypewould also be useful for doing checks inside generic functions.isTypeAssignableTowould also be useful for ano-unnecessary-castrule.