vuetify
Version:
Vue Material Component Framework
14 lines • 436 B
JavaScript
// Utilities
import { getCurrentInstance } from "./getCurrentInstance.js"; // Types
export function injectSelf(key) {
let vm = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstance('injectSelf');
const {
provides
} = vm;
if (provides && key in provides) {
// TS doesn't allow symbol as index type
return provides[key];
}
return undefined;
}
//# sourceMappingURL=injectSelf.js.map