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

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)

                      Peer Dependencies (1)

                      Badge

                      To add a badge like this onejsDocs.io badgeto 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>