-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhanced IFactory<T> flexibility (#185)
* Added toDynamicValue * Added DynamicValue * Added toDynamicValue * Added DynamicValue binding support * Removed white spaces * Added toDynamicValue test * Removed white spaces * Added DynamicValue * Added * Added * Update inversify-test.ts * Added DynamicValue * Added DynamicValue * Update resolver.test.ts * Update resolver.test.ts * Update README.md * Update inversify-test.ts * Update inversify-global-tests.ts * fixing build * working on #180 * working on #180 * updated docs * updated docs
- Loading branch information
1 parent
9128ee4
commit 48d96b7
Showing
5 changed files
with
118 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/// <reference path="../interfaces.d.ts" /> | ||
|
||
interface IFactory<T> extends Function { | ||
(...args: any[]): T; | ||
(...args: any[]): (((...args: any[]) => T)|T); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters