npm.io
1.7.0 • Published 11 months ago

ux-types

Licence
MIT
Version
1.7.0
Deps
0
Size
381 kB
Vulns
0
Weekly
0

Ux Types

Types for ux

Install

npm install ux-types --save-dev

Usage

JS File Type Hints
import { defineComponent } from 'ux-types';

export default defineComponent({
   private: {
    title: "title"
   },
   onShow() {
    this.fn();
   },
   fn() {
    console.log(this.title);
   }
})
JS Interface Hints

Create a jsconfig.json / tsconfig.json in your project root directory with the following content:

{
    "compilerOptions": {
        "module": "preserve",
        "types": ["ux-types/feature"],
    }
}