vue-class-component
- Version 7.2.6
- Published
- 119 kB
- No dependencies
- MIT license
Install
npm i vue-class-component
yarn add vue-class-component
pnpm add vue-class-component
Overview
ES201X/TypeScript class decorator for Vue components
Index
Functions
Interfaces
Namespaces
Functions
function Component
Component: typeof Component;
function createDecorator
createDecorator: ( factory: (options: ComponentOptions<Vue>, key: string, index: number) => void) => VueDecorator;
function mixins
mixins: { <A>(CtorA: VueClass<A>): VueClass<A>; <A, B>(CtorA: any, CtorB: any): any; <A, B, C>(CtorA: any, CtorB: any, CtorC: any): any; <A, B, C, D>(CtorA: any, CtorB: any, CtorC: any, CtorD: any): any; <A, B, C, D, E>(CtorA: any, CtorB: any, CtorC: any, CtorD: any, CtorE: any): any; <T>(...Ctors: any[]): any; <T extends any[]>(...Ctors: T): MixedVueClass<T>;};
Interfaces
interface VueDecorator
interface VueDecorator {}
call signature
(Ctor: typeof Vue): void;
call signature
(target: Vue, key: string): void;
call signature
(target: Vue, key: string, index: number): void;
Namespaces
namespace Component
namespace Component {}
function registerHooks
registerHooks: (keys: string[]) => void;
function registerHooks
registerHooks: (keys: string[]) => void;
Package Files (2)
Dependencies (0)
No dependencies.
Dev Dependencies (33)
- @babel/core
- @babel/plugin-proposal-class-properties
- @babel/plugin-proposal-decorators
- @babel/plugin-syntax-jsx
- @babel/preset-env
- @types/chai
- @types/mocha
- @types/node
- @typescript-eslint/parser
- babel-helper-vue-jsx-merge-props
- babel-loader
- babel-plugin-transform-vue-jsx
- chai
- css-loader
- eslint
- eslint-plugin-vue-libs
- mocha
- reflect-metadata
- rimraf
- rollup
- rollup-plugin-babel
- rollup-plugin-replace
- testdouble
- ts-loader
- typescript
- uglify-es
- vue
- vue-loader
- vue-template-compiler
- vuepress
- vuex
- webpack
- webpack-cli
Peer Dependencies (1)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/vue-class-component
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/vue-class-component)
- HTML<a href="https://www.jsdocs.io/package/vue-class-component"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2366 ms. - Missing or incorrect documentation? Open an issue for this package.