Skip to content

Commit 2f08ed8

Browse files
committed
fix(di): fixed types
1 parent 1386977 commit 2f08ed8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

modules/angular2/src/di/decorators.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,24 @@ export interface SelfFactory {
4646
* Factory for creating {@link ParentMetadata}.
4747
*/
4848
export interface ParentFactory {
49-
({self: boolean}?): any;
50-
new ({self: boolean}?): ParentMetadata;
49+
(visibility?: {self: boolean}): any;
50+
new (visibility?: {self: boolean}): ParentMetadata;
5151
}
5252

5353
/**
5454
* Factory for creating {@link AncestorMetadata}.
5555
*/
5656
export interface AncestorFactory {
57-
({self: boolean}?): any;
58-
new ({self: boolean}?): AncestorMetadata;
57+
(visibility?: {self: boolean}): any;
58+
new (visibility?: {self: boolean}): AncestorMetadata;
5959
}
6060

6161
/**
6262
* Factory for creating {@link UnboundedMetadata}.
6363
*/
6464
export interface UnboundedFactory {
65-
({self: boolean}?): any;
66-
new ({self: boolean}?): UnboundedMetadata;
65+
(visibility?: {self: boolean}): any;
66+
new (visibility?: {self: boolean}): UnboundedMetadata;
6767
}
6868

6969
/**

0 commit comments

Comments
 (0)