Skip to content

Commit

Permalink
Merge pull request #65 from inversify/feat/update-service-identifier-…
Browse files Browse the repository at this point in the history
…with-function

Update ServiceIdentifier to allow Function
  • Loading branch information
notaphplover authored Nov 2, 2024
2 parents 6f73b92 + 611f75f commit c82b567
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sour-eyes-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inversifyjs/common": minor
---

Updated `ServiceIdentifier` to allow `Function`
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ import { Newable } from './Newable';
export type ServiceIdentifier<TInstance = unknown> =
| string
| symbol
| Newable<TInstance>;
| Newable<TInstance>
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
| Function;

0 comments on commit c82b567

Please sign in to comment.