typescript-type-completion-sorting-plugin
v1.0.2
Published
Push inherited properties from base types to bottom for TS completion
Downloads
3
Readme
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"
}]