fix ts file