UNPKG

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) 758 B
import{inject as o}from"vue";import{MonocleKey as n}from"../injectionKey.js";function t(){const t=o(n);if(!t)throw new Error("[Monocle] instance not found: did you include the boot file?");return{init:async function(){if(!t)throw new Error("[Monocle] instance not found: did you include the boot file?");await t.init()},getAssessment:async function(){if(!t)throw new Error("[Monocle] instance not found: did you include the boot file?");return t.getAssessment()},on:function(o,n){if(!t)throw new Error("[Monocle] instance not found: did you include the boot file?");t.on(o,n)},off:function(o,n){if(!t)throw new Error("[Monocle] instance not found: did you include the boot file?");t.off(o,n)}}}export{t as useMonocle}; //# sourceMappingURL=useMonocle.js.map