Fix typescript definition