@@ -18,19 +18,19 @@ and limitations under the License.
18
18
/// <reference no-default-lib="true"/>
19
19
20
20
21
- interface Generator extends Iterator < any > { }
21
+ interface Generator < T > extends IterableIterator < T > { }
22
22
23
- interface GeneratorFunction {
23
+ interface GeneratorFunction < T > {
24
24
/**
25
25
* Creates a new Generator object.
26
26
* @param args A list of arguments the function accepts.
27
27
*/
28
- new ( ...args : any [ ] ) : Generator ;
28
+ new ( ...args : any [ ] ) : Generator < T > ;
29
29
/**
30
30
* Creates a new Generator object.
31
31
* @param args A list of arguments the function accepts.
32
32
*/
33
- ( ...args : any [ ] ) : Generator ;
33
+ ( ...args : any [ ] ) : Generator < T > ;
34
34
/**
35
35
* The length of the arguments.
36
36
*/
@@ -42,20 +42,20 @@ interface GeneratorFunction {
42
42
/**
43
43
* A reference to the prototype.
44
44
*/
45
- readonly prototype : Generator ;
45
+ readonly prototype : Generator < T > ;
46
46
}
47
47
48
- interface GeneratorFunctionConstructor {
48
+ interface GeneratorFunctionConstructor < T > {
49
49
/**
50
50
* Creates a new Generator function.
51
51
* @param args A list of arguments the function accepts.
52
52
*/
53
- new ( ...args : string [ ] ) : GeneratorFunction ;
53
+ new ( ...args : string [ ] ) : GeneratorFunction < T > ;
54
54
/**
55
55
* Creates a new Generator function.
56
56
* @param args A list of arguments the function accepts.
57
57
*/
58
- ( ...args : string [ ] ) : GeneratorFunction ;
58
+ ( ...args : string [ ] ) : GeneratorFunction < T > ;
59
59
/**
60
60
* The length of the arguments.
61
61
*/
@@ -67,5 +67,5 @@ interface GeneratorFunctionConstructor {
67
67
/**
68
68
* A reference to the prototype.
69
69
*/
70
- readonly prototype : GeneratorFunction ;
70
+ readonly prototype : GeneratorFunction < T > ;
71
71
}
0 commit comments