diff --git a/src/core/ioc/base.ts b/src/core/ioc/base.ts index bed7b110..e227b4f2 100644 --- a/src/core/ioc/base.ts +++ b/src/core/ioc/base.ts @@ -22,7 +22,9 @@ export function useContainerRaw() { } const dependencyBuilder = (container: any, excluded: Set) => { - type Insertable = (container: CoreContainer) => any; + type Insertable = + | ((container: CoreContainer) => unknown) + | Record return { add(key: keyof Dependencies, v: Insertable) { Result