update .ts file