@putout/plugin-remove-useless-types
putout plugin adds ability to find and remove useless
Last updated 5 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @putout/plugin-remove-useless-types 
SYNC missed versions from official npm registry.

@putout/plugin-remove-useless-types NPM version Dependency Status

putout plugin adds ability to find and remove useless types.

Install

npm i @putout/plugin-remove-useless-types -D

Rule

{
    "rules": {
        "remove-useless-types": "on"
    }
}

❌ Incorrect code example

type oldType = {
    a: number,
    b: string,
};

type newType = oldType;

const x:newType = 5;

✅ Correct code Example

type oldType = {
    a: number,
    b: string,
};

const x:oldType = 5;

License

MIT

Current Tags

  • 1.4.1                                ...           latest (4 years ago)

7 Versions

  • 1.4.1                                ...           4 years ago
  • 1.4.0                                ...           5 years ago
  • 1.3.0                                ...           5 years ago
  • 1.2.1                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (0)
None
Dev Dependencies (10)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |