Properly resolve tsc