Get the latest tech news

Show HN: ts-remove-unused – Remove unused code from your TypeScript project


Remove unused code from your TypeScript project. Contribute to line/ts-remove-unused development by creating an account on GitHub.

However when this declaration is exported and is not referenced by any file in the project, it's difficult to recognize this. ts-remove-unused is a CLI tool made on top of TypeScript that reports/fixes unused exports. When you add a comment// ts-remove-unused-skip to your export declaration, it will be skipped from being removed

Get the Android app

Or read this on Hacker News

Read more on:

Photo of TypeScript

TypeScript

Photo of TypeScript project

TypeScript project

Photo of unused code

unused code

Related news:

News photo

Playing Sudoku in TypeScript while the type checker highlights mistakes

News photo

Show HN: Srcbook – A TypeScript notebook for rapid prototyping

News photo

An approach to optimizing TypeScript type checking performance