{"library":"vue-property-decorator","type":"library","category":null,"description":"vue-property-decorator is a library that provides a set of TypeScript decorators for creating Vue components with a class-based syntax, building on top of `vue-class-component`. It allows developers to define props, methods, computed properties, watchers, and lifecycle hooks using declarative decorators rather than the traditional Vue options API. This approach aims to improve readability and maintainability, especially in larger TypeScript projects. The current stable version is 9.1.2. While its release cadence has varied, it remains actively maintained, though primarily for Vue 2 applications. Its key differentiator is simplifying common Vue patterns into concise, type-safe decorator declarations, providing a more object-oriented way to define components compared to the standard options API or the newer Vue 3 Composition API. It is largely considered a bridge for those who prefer class-based component development within the Vue 2 ecosystem.","language":"javascript","status":"active","version":"9.1.2","tags":["javascript","vue","typescript","decorator"],"last_verified":"Wed May 27","install":[{"cmd":"npm install vue-property-decorator","imports":["import Component from 'vue-class-component'","import { Prop } from 'vue-property-decorator'","import { Emit } from 'vue-property-decorator'","import { Watch } from 'vue-property-decorator'","import Vue from 'vue'","import { Inject, Provide } from 'vue-property-decorator'"]},{"cmd":"yarn add vue-property-decorator","imports":[]},{"cmd":"pnpm add vue-property-decorator","imports":[]}],"homepage":null,"github":"https://github.com/kaorun343/vue-property-decorator","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/vue-property-decorator","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/vue-property-decorator/compatibility"}}