Types for ux
npm install ux-types --save-dev
import { defineComponent } from 'ux-types';
export default defineComponent({
private: {
title: "title"
},
onShow() {
this.fn();
},
fn() {
console.log(this.title);
}
})
Create a jsconfig.json / tsconfig.json in your project root directory with the following content:
{
"compilerOptions": {
"module": "preserve",
"types": ["ux-types/feature"],
}
}