# @putout/plugin-remove-unused-types

> putout plugin adds ability to find and remove unused types

Latest version **2.0.1** (published 2022-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @putout/plugin-remove-unused-types
pnpm add @putout/plugin-remove-unused-types
yarn add @putout/plugin-remove-unused-types
bun add @putout/plugin-remove-unused-types
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2022-01-13 |
| First published | 2020-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 805 |
| Author | coderaiser |
| Maintainers | coderaiser |
| Keywords | putout, putout-plugin, putout-plugin-remove, plugin, remove, unused, types |

## Links

- npm: https://www.npmjs.com/package/@putout/plugin-remove-unused-types
- Repository: https://github.com/coderaiser/putout
- Homepage: https://github.com/coderaiser/putout/tree/v24.0.2/packages/plugin-typescript#remove-unused-types
- Issues: https://github.com/coderaiser/putout/issues
- npm.io page: https://npm.io/package/@putout/plugin-remove-unused-types

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2022-01-13
- 2.0.0 — 2021-12-25
- 1.3.0 — 2021-05-15
- 1.2.0 — 2020-09-02
- 1.1.0 — 2020-07-30
- 1.0.0 — 2020-07-30

## README

# @putout/plugin-remove-unused-types [![NPM version][NPMIMGURL]][NPMURL]

[NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-remove-unused-types.svg?style=flat&longCache=true
[NPMURL]: https://npmjs.org/package/@putout/plugin-remove-unused-types "npm"

🐊[`Putout`](https://github.com/coderaiser/putout) plugin adds ability to find and remove `unused types`.
Moved to [`@putout/plugin-typescript`](https://github.com/coderaiser/putout/tree/v24.0.2/packages/plugin-typescript#remove-unused-types)

## Install

```
npm i @putout/plugin-remove-unused-types -D
```

## Rule

```json
{
    "rules": {
        "remove-unused-types": "on"
    }
}
```

## ❌ Incorrect code example

```ts
type n = number;
type s = string;

const x: n = 5;
```

## ✅ Correct code Example

```ts
type n = number;

const x: n = 5;
```

## License

MIT

---
_Source: https://npm.io/package/@putout/plugin-remove-unused-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
