ux-types
TypeScript icon, indicating that this package has built-in type declarations

1.7.0 • Public • Published

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"],
    }
}

Readme

Keywords

Package Sidebar

Install

npm i ux-types

Weekly Downloads

11

Version

1.7.0

License

MIT

Unpacked Size

390 kB

Total Files

134

Last publish

Collaborators

  • dongwa
  • chapaofan