Fix build with new typescript 9.1.1 update