From d07cb30b539e50d305f55a40332c3988341a845e Mon Sep 17 00:00:00 2001 From: "Hugo \"ThePooN\" Denizart" Date: Sun, 8 Sep 2019 12:24:11 +0200 Subject: [PATCH] Add support for PropSync decorator --- lib/nuxt-property-decorator.d.ts | 4 ++-- lib/nuxt-property-decorator.umd.js | 6 ++++++ src/nuxt-property-decorator.ts | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/nuxt-property-decorator.d.ts b/lib/nuxt-property-decorator.d.ts index 4bb2af2..ed3591e 100644 --- a/lib/nuxt-property-decorator.d.ts +++ b/lib/nuxt-property-decorator.d.ts @@ -1,5 +1,5 @@ import Vue from 'vue'; -import { /*Component,*/ Emit, Inject, Model, Prop, Provide, Watch } from "vue-property-decorator"; +import { /*Component,*/ Emit, Inject, Model, Prop, PropSync, Provide, Watch } from "vue-property-decorator"; import Component, { mixins } from 'vue-class-component'; import 'reflect-metadata'; export declare type Constructor = { @@ -30,4 +30,4 @@ export declare function Once(event?: string): MethodDecorator; */ export declare function NextTick(method: string): MethodDecorator; import { State, Getter, Action, Mutation, namespace } from 'vuex-class'; -export { Vue, Component, Emit, Inject, Model, Prop, Provide, Watch, mixins, State, Getter, Action, Mutation, namespace }; +export { Vue, Component, Emit, Inject, Model, Prop, PropSync, Provide, Watch, mixins, State, Getter, Action, Mutation, namespace }; diff --git a/lib/nuxt-property-decorator.umd.js b/lib/nuxt-property-decorator.umd.js index d216c87..2d93889 100644 --- a/lib/nuxt-property-decorator.umd.js +++ b/lib/nuxt-property-decorator.umd.js @@ -148,6 +148,12 @@ return vuePropertyDecorator.Prop; } }); + Object.defineProperty(exports, 'PropSync', { + enumerable: true, + get: function () { + return vuePropertyDecorator.PropSync; + } + }); Object.defineProperty(exports, 'Provide', { enumerable: true, get: function () { diff --git a/src/nuxt-property-decorator.ts b/src/nuxt-property-decorator.ts index 7429885..e5880b9 100644 --- a/src/nuxt-property-decorator.ts +++ b/src/nuxt-property-decorator.ts @@ -1,7 +1,7 @@ 'use strict' import Vue, { PropOptions, WatchOptions } from 'vue' -import { /*Component,*/ Emit, Inject, Model, Prop, Provide, Watch /*, Vue, Mixins */ } from "vue-property-decorator" +import { /*Component,*/ Emit, Inject, Model, Prop, PropSync, Provide, Watch /*, Vue, Mixins */ } from "vue-property-decorator" import Component, { createDecorator, mixins } from 'vue-class-component' Component.registerHooks([ @@ -123,4 +123,4 @@ export function NextTick(method: string): MethodDecorator { } import { State, Getter, Action, Mutation, namespace } from 'vuex-class' -export { Vue, Component, Emit, Inject, Model, Prop, Provide, Watch, mixins, State, Getter, Action, Mutation, namespace } +export { Vue, Component, Emit, Inject, Model, Prop, PropSync, Provide, Watch, mixins, State, Getter, Action, Mutation, namespace }