UNPKG

478 BTypeScriptView Raw
1import Vue, { PropOptions } from 'vue';
2import { Constructor } from 'vue/types/options';
3/**
4 * decorator of synced model and prop
5 * @param propName the name to interface with from outside, must be different from decorated property
6 * @param event event name
7 * @param options options
8 * @return PropertyDecorator
9 */
10export declare function ModelSync(propName: string, event?: string, options?: PropOptions | Constructor[] | Constructor): (target: Vue, key: string) => void;