Skip to content

Commit

Permalink
Merge pull request nuxt-community#53 from ThePooN/master
Browse files Browse the repository at this point in the history
Add support for PropSync decorator
  • Loading branch information
husayt authored Oct 17, 2019
2 parents 2f5561c + 8bbf7f4 commit 673a4d4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/nuxt-property-decorator.d.ts
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down Expand Up @@ -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 };
6 changes: 6 additions & 0 deletions lib/nuxt-property-decorator.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
4 changes: 2 additions & 2 deletions src/nuxt-property-decorator.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

import Vue, { PropOptions, WatchOptions } from 'vue'
import { /*Component,*/ Emit, Inject, Model, Prop, Provide, Watch, Ref /*, Vue, Mixins */ } from "vue-property-decorator"
import { /*Component,*/ Emit, Inject, Model, Prop, PropSync, Provide, Watch, Ref /*, Vue, Mixins */ } from "vue-property-decorator"
import Component, { createDecorator, mixins } from 'vue-class-component'

Component.registerHooks([
Expand Down Expand Up @@ -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, Ref, mixins, State, Getter, Action, Mutation, namespace }
export { Vue, Component, Emit, Inject, Model, Prop, PropSync, Provide, Watch, Ref, mixins, State, Getter, Action, Mutation, namespace }

0 comments on commit 673a4d4

Please sign in to comment.