fix ts definitions