typescript-type-completion-sorting-plugin
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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:

(Component own properties are messed with HTML ones)

After:

(Notice component own properites are being displayed at top)

Class

Before

(Mix own & inherited properties)

After:

(Own properties are being displayed at top)

Before:

After:

(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

Readme

Keywords

none

Package Sidebar

Install

npm i typescript-type-completion-sorting-plugin

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • asvetliakov