UNPKG

pinia-facing-decorator

Version:
9 lines 306 B
import { PropertyActions } from "../utils/constant"; import { defineProperty } from "../utils/libs"; function Actions(target, key, decorator) { if (!target[PropertyActions]) { defineProperty(target, PropertyActions, {}); } target[PropertyActions][key] = decorator.value; } export default Actions;