cli tool to add comments to suppress typescript type errors
npm install suppress-ts-errors
Cli tool to add comments to suppress typescript type errors.
Add @ts-expect-error or @ts-ignore comments to all locations where errors are occurring.
Support for .ts, .tsx, .vue.
!Kapture 2022-05-01 at 15 35 50
Run the script in the directory where tsconfig.json is located.
``bash`
$ npx suppress-ts-errors
When targeting vue sfc, the path of the vue component must be specified with the glob pattern.
Notice: It does not support commenting out type errors in the section of vue, only the