InjectedValue
import type { InjectedValue } from "https://raw.githubusercontent.com/drmercer/minimal-injector/master/injector.ts";A utility type that evaluates to the "T" given an InjectKey. This allows you to do things like:
export type Foo = InjectedValue<typeof Foo>; // resolves to { foo(): void, bar(): void }
export const Foo = injectable(() => {
return {
foo() {
console.log("foo");
},
bar() {
console.log("bar");
},
};
}})