Updated TS defs (fix #650)