From 34c8f61d78c7b76abbf51280d32307e9cc46995e Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Sat, 28 Oct 2023 17:19:40 -0500 Subject: [PATCH] better typings --- src/core/ioc/base.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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