Skip to content

Commit c74eecb

Browse files
chore(all): prepare release 0.12.1
1 parent 0425736 commit c74eecb

File tree

5 files changed

+24
-16
lines changed

5 files changed

+24
-16
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-dependency-injection",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "A lightweight, extensible dependency injection container for JavaScript.",
55
"keywords": [
66
"aurelia",

dist/aurelia-dependency-injection.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class StrategyResolver {
208208
/**
209209
* Decorator: Specifies a custom Invoker for the decorated item.
210210
*/
211-
export function invoker(value: Invoker) {
211+
export function invoker(value: Invoker): any {
212212
return function(target) {
213213
metadata.define(metadata.invoker, value, target);
214214
};
@@ -217,7 +217,7 @@ export function invoker(value: Invoker) {
217217
/**
218218
* Decorator: Specifies that the decorated item should be called as a factory function, rather than a constructor.
219219
*/
220-
export function factory(potentialTarget?: any) {
220+
export function factory(potentialTarget?: any): any {
221221
let deco = function(target) {
222222
metadata.define(metadata.invoker, FactoryInvoker.instance, target);
223223
};
@@ -301,7 +301,7 @@ export class FactoryInvoker {
301301
/**
302302
* Decorator: Specifies a custom registration strategy for the decorated class/function.
303303
*/
304-
export function registration(value: Registration) {
304+
export function registration(value: Registration): any {
305305
return function(target) {
306306
metadata.define(metadata.registration, value, target);
307307
};
@@ -310,14 +310,14 @@ export function registration(value: Registration) {
310310
/**
311311
* Decorator: Specifies to register the decorated item with a "transient" lifetime.
312312
*/
313-
export function transient(key?: any) {
313+
export function transient(key?: any): any {
314314
return registration(new TransientRegistration(key));
315315
}
316316

317317
/**
318318
* Decorator: Specifies to register the decorated item with a "singleton" lieftime.
319319
*/
320-
export function singleton(keyOrRegisterInChild?: any, registerInChild?: boolean = false) {
320+
export function singleton(keyOrRegisterInChild?: any, registerInChild?: boolean = false): any {
321321
return registration(new SingletonRegistration(keyOrRegisterInChild, registerInChild));
322322
}
323323

@@ -830,7 +830,7 @@ export class Container {
830830
/**
831831
* Decorator: Directs the TypeScript transpiler to write-out type metadata for the decorated class.
832832
*/
833-
export function autoinject(potentialTarget?: any) {
833+
export function autoinject(potentialTarget?: any): any {
834834
let deco = function(target) {
835835
target.inject = metadata.getOwn(metadata.paramTypes, target) || _emptyParameters;
836836
};
@@ -841,7 +841,7 @@ export function autoinject(potentialTarget?: any) {
841841
/**
842842
* Decorator: Specifies the dependencies that should be injected by the DI Container into the decoratored class/function.
843843
*/
844-
export function inject(...rest: any[]) {
844+
export function inject(...rest: any[]): any {
845845
return function(target, key, descriptor) {
846846
// if it's true then we injecting rest into function and not Class constructor
847847
if (descriptor) {

dist/es6/aurelia-dependency-injection.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class StrategyResolver {
208208
/**
209209
* Decorator: Specifies a custom Invoker for the decorated item.
210210
*/
211-
export function invoker(value: Invoker) {
211+
export function invoker(value: Invoker): any {
212212
return function(target) {
213213
metadata.define(metadata.invoker, value, target);
214214
};
@@ -217,7 +217,7 @@ export function invoker(value: Invoker) {
217217
/**
218218
* Decorator: Specifies that the decorated item should be called as a factory function, rather than a constructor.
219219
*/
220-
export function factory(potentialTarget?: any) {
220+
export function factory(potentialTarget?: any): any {
221221
let deco = function(target) {
222222
metadata.define(metadata.invoker, FactoryInvoker.instance, target);
223223
};
@@ -301,7 +301,7 @@ export class FactoryInvoker {
301301
/**
302302
* Decorator: Specifies a custom registration strategy for the decorated class/function.
303303
*/
304-
export function registration(value: Registration) {
304+
export function registration(value: Registration): any {
305305
return function(target) {
306306
metadata.define(metadata.registration, value, target);
307307
};
@@ -310,14 +310,14 @@ export function registration(value: Registration) {
310310
/**
311311
* Decorator: Specifies to register the decorated item with a "transient" lifetime.
312312
*/
313-
export function transient(key?: any) {
313+
export function transient(key?: any): any {
314314
return registration(new TransientRegistration(key));
315315
}
316316

317317
/**
318318
* Decorator: Specifies to register the decorated item with a "singleton" lieftime.
319319
*/
320-
export function singleton(keyOrRegisterInChild?: any, registerInChild?: boolean = false) {
320+
export function singleton(keyOrRegisterInChild?: any, registerInChild?: boolean = false): any {
321321
return registration(new SingletonRegistration(keyOrRegisterInChild, registerInChild));
322322
}
323323

@@ -830,7 +830,7 @@ export class Container {
830830
/**
831831
* Decorator: Directs the TypeScript transpiler to write-out type metadata for the decorated class.
832832
*/
833-
export function autoinject(potentialTarget?: any) {
833+
export function autoinject(potentialTarget?: any): any {
834834
let deco = function(target) {
835835
target.inject = metadata.getOwn(metadata.paramTypes, target) || _emptyParameters;
836836
};
@@ -841,7 +841,7 @@ export function autoinject(potentialTarget?: any) {
841841
/**
842842
* Decorator: Specifies the dependencies that should be injected by the DI Container into the decoratored class/function.
843843
*/
844-
export function inject(...rest: any[]) {
844+
export function inject(...rest: any[]): any {
845845
return function(target, key, descriptor) {
846846
// if it's true then we injecting rest into function and not Class constructor
847847
if (descriptor) {

doc/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
### 0.12.1 (2015-11-11)
2+
3+
4+
#### Bug Fixes
5+
6+
* **all:** TS fixes for decorators ([04257368](http://github.com/aurelia/dependency-injection/commit/0425736875302f80c0216c7caaa9421182f4184d))
7+
8+
19
## 0.12.0 (2015-11-09)
210

311

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "aurelia-dependency-injection",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "A lightweight, extensible dependency injection container for JavaScript.",
55
"keywords": [
66
"aurelia",

0 commit comments

Comments
 (0)