@vuepress-reco/style-default
Version:
It is default type of vuepress-theme-reco.
13 lines (12 loc) • 359 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useInstance = void 0;
const vue_1 = require("vue");
function useInstance() {
const vm = vue_1.getCurrentInstance();
if (!vm)
throw new Error('must be called in setup');
const instance = vm || {};
return instance;
}
exports.useInstance = useInstance;