routie dev init since i didn't adhere to any proper guidance up until now
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
// Utilities
|
||||
import { getCurrentInstance } from "./getCurrentInstance.js"; // Types
|
||||
export function injectSelf(key, vm = 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
|
||||
Reference in New Issue
Block a user