vue-spur-monocle
Version:
> **Note:** This is **not** an official package. For the official Monocle documentation, please visit: [https://docs.spur.us/monocle](https://docs.spur.us/monocle)
3 lines (2 loc) • 767 B
JavaScript
;var n=require("vue"),o=require("../injectionKey.cjs.js");exports.useMonocle=function(){const e=n.inject(o.MonocleKey);if(!e)throw new Error("[Monocle] instance not found: did you include the boot file?");return{init:async function(){if(!e)throw new Error("[Monocle] instance not found: did you include the boot file?");await e.init()},getAssessment:async function(){if(!e)throw new Error("[Monocle] instance not found: did you include the boot file?");return e.getAssessment()},on:function(n,o){if(!e)throw new Error("[Monocle] instance not found: did you include the boot file?");e.on(n,o)},off:function(n,o){if(!e)throw new Error("[Monocle] instance not found: did you include the boot file?");e.off(n,o)}}};
//# sourceMappingURL=useMonocle.cjs.js.map