- // Utilities
- import { getCurrentInstance } from "./getCurrentInstance.mjs"; // Types
- export function injectSelf(key) {
- const {
- provides
- } = getCurrentInstance('injectSelf');
- if (provides && key in provides) {
- // TS doesn't allow symbol as index type
- return provides[key];
- }
- return undefined;
- }
- //# sourceMappingURL=injectSelf.mjs.map
|