ts-import-types-cli icon indicating copy to clipboard operation
ts-import-types-cli copied to clipboard

Autofix TypeScript types to be imported using `import type`

Results 5 ts-import-types-cli issues
Sort by recently updated
recently updated
newest added

Closes https://github.com/JamieMason/ts-import-types-cli/issues/4 Adds two new flags: - --stdio - read from stdin and write to stdout - --file-path - file location to use for --stdio source code example: ``` ts-import-types...

Adding the option to read/write to stdin/out would make it easier to use as an editor plugin ```sh ts-import-types-cli < input.ts ```

enhancement
help wanted

Previously, if your tsconfig.json file contained a comment (allowed by the TS compiler) the ts-import-types-cli would throw the following error: `ts-import-types-cli --project /myproject/tsconfig.json is not a tsconfig.json file` This is...

I ran this on a project recently and hit a few types of failing or unexpected behavior. I don't know how best to iterate on this so I figured I'll...

I ran `ts-import-types-cli -p path/to/tsconfig.json -d` and it failed with ``` SyntaxError: /Users/jfsiii/work/kibana/x-pack/plugins/fleet/tsconfig.json: Unexpected token } in JSON at position 212 at parse () at Object.Module._extensions..json (internal/modules/cjs/loader.js:1106:22) at Module.load (internal/modules/cjs/loader.js:928:32)...