injectSelf.mjs 355 B

12345678910111213
  1. // Utilities
  2. import { getCurrentInstance } from "./getCurrentInstance.mjs"; // Types
  3. export function injectSelf(key) {
  4. const {
  5. provides
  6. } = getCurrentInstance('injectSelf');
  7. if (provides && key in provides) {
  8. // TS doesn't allow symbol as index type
  9. return provides[key];
  10. }
  11. return undefined;
  12. }
  13. //# sourceMappingURL=injectSelf.mjs.map