Skip to content
This repository has been archived by the owner on Dec 17, 2023. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
phiresky committed Jun 24, 2020
1 parent 803095f commit 784799f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ ts-prune --fix

This will cause all exported functions, classes and variables to become local declarations, and will remove `export ... from ...` statements.

After this step, you should do the following things:

1. Verify your code still compiles
2. Run `ts-prune --fix` again, since there may be new unused exports after the first run
3. Find new unused local variable declarations with tsconfig `"noUnusedLocals": true`

### FAQ

#### How do I get the count of unused exports?
Expand Down

0 comments on commit 784799f

Please sign in to comment.