-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from remojansen/master
Implements Value, Constructor, Factory and Provider injections
- Loading branch information
Showing
30 changed files
with
793 additions
and
102 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,8 @@ typings | |
|
||
dist | ||
|
||
src/*.js | ||
src/**/*.js | ||
test/*.js | ||
test/**/*.js | ||
type_definitions/*.js |
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,13 +1,12 @@ | ||
language: node_js | ||
node_js: | ||
- stable | ||
- 4.2.3 | ||
- 4.2.0 | ||
- 4.1.2 | ||
- 4.1.0 | ||
- 4.0.0 | ||
- 5.4.1 | ||
- 5.4.0 | ||
- 5.3.0 | ||
- 5.2.0 | ||
- 5.1.1 | ||
- '0.12' | ||
- '0.10' | ||
before_install: | ||
- npm install -g typings | ||
- typings install |
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
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,10 +1,12 @@ | ||
///<reference path="../interfaces/interfaces.d.ts" /> | ||
|
||
enum BindingType { | ||
Invalid, | ||
Instance, | ||
Value, | ||
Constructor, | ||
Factory | ||
Factory, | ||
Provider | ||
} | ||
|
||
export default BindingType; |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference path="../interfaces.d.ts" /> | ||
|
||
interface IFactory<T> extends Function { | ||
(): 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference path="../interfaces.d.ts" /> | ||
|
||
interface IFactoryCreator<T> extends Function { | ||
(context: IContext): IFactory<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference path="../interfaces.d.ts" /> | ||
|
||
interface INewable<T> { | ||
new(...args: any[]): 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference path="../interfaces.d.ts" /> | ||
|
||
interface IProvider<T> extends Function { | ||
(): Promise<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference path="../interfaces.d.ts" /> | ||
|
||
interface IProviderCreator<T> extends Function { | ||
(context: IContext): IProvider<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,38 @@ | ||
|
||
// KERNEL | ||
/// <reference path="./kernel/kernel.d.ts" /> | ||
/// <reference path="./kernel/kernel_module.d.ts" /> | ||
/// <reference path="./kernel/kernel_options.d.ts" /> | ||
/// <reference path="./kernel/key_value_pair.d.ts" /> | ||
/// <reference path="./kernel/lookup.d.ts" /> | ||
|
||
// PLANNING | ||
/// <reference path="./planning/planner.d.ts" /> | ||
/// <reference path="./planning/plan.d.ts" /> | ||
/// <reference path="./planning/request.d.ts" /> | ||
/// <reference path="./planning/context.d.ts" /> | ||
/// <reference path="./planning/target.d.ts" /> | ||
/// <reference path="./planning/queryable_string.d.ts" /> | ||
|
||
// RESOLUTION | ||
/// <reference path="./resolution/resolver.d.ts" /> | ||
|
||
// BINDINGS | ||
/// <reference path="./bindings/binding.d.ts" /> | ||
/// <reference path="./bindings/constraint.d.ts" /> | ||
/// <reference path="./bindings/factory.d.ts" /> | ||
/// <reference path="./bindings/provider.d.ts" /> | ||
/// <reference path="./bindings/factory_creator.d.ts" /> | ||
/// <reference path="./bindings/provider_creator.d.ts" /> | ||
/// <reference path="./bindings/newable.d.ts" /> | ||
|
||
// ACTIVATION | ||
/// <reference path="./activation/metadata.d.ts" /> | ||
|
||
/// <reference path="./planning/request.d.ts" /> | ||
/// <reference path="./planning/context.d.ts" /> | ||
/// <reference path="./planning/target.d.ts" /> | ||
/// <reference path="./planning/queryable_string.d.ts" /> | ||
|
||
// MIDDLEWARE | ||
/// <reference path="./middleware/middleware.d.ts" /> | ||
|
||
// SYNTAX | ||
/// <reference path="./syntax/binding_when_syntax.d.ts" /> | ||
/// <reference path="./syntax/binding_to_syntax.d.ts" /> | ||
/// <reference path="./syntax/binding_in_syntax.d.ts" /> |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.