Skip to content

Commit

Permalink
better typings
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobes committed Oct 28, 2023
1 parent 878c4f5 commit 34c8f61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/ioc/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export function useContainerRaw() {
}

const dependencyBuilder = (container: any, excluded: Set<string>) => {
type Insertable = (container: CoreContainer<Dependencies>) => any;
type Insertable =
| ((container: CoreContainer<Dependencies>) => unknown)
| Record<PropertyKey, any>
return {
add(key: keyof Dependencies, v: Insertable) {
Result
Expand Down

0 comments on commit 34c8f61

Please sign in to comment.