create ts file in angular 7 code example
Example 1: angular generate component
ng g component componentname
Example 2: angular cli create component
plainsight/some-name/some-name.component.ts
ng g component componentname
plainsight/some-name/some-name.component.ts