UNPKG

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