Fixed TS compile error