support write ts file