UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

1 lines 255 B
import{inject}from"vue";function useInjectStrict(key,fallback,errorMessage){let resolved=inject(key,fallback);if(!resolved)throw TypeError(errorMessage||`[maz-ui](injectStrict) Could not resolve ${key.toString()}`);return resolved}export{useInjectStrict};