1.0.2 • Published 7 years ago

typescript-type-completion-sorting-plugin v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Description

When doing completion from TS service, slightly reorder available completions to keep own non-inherited properties from type at the top of completion list:

React (especially useful when inherting from HTMLAttributes)

Before:

npm.io

(Component own properties are messed with HTML ones)

After:

npm.io

(Notice component own properites are being displayed at top)

Class

Before

npm.io

(Mix own & inherited properties)

After:

npm.io

(Own properties are being displayed at top)

Before:

npm.io

After:

npm.io

(Own properties are being displayed at top)

Installation

npm install typescript-type-completion-sorting-plugin --save-dev

Add plugin to your tsconfig.json

    "plugins": [{
         "name": "typescript-type-completion-sorting-plugin"
    }]

Knwon issues