@@ -6,7 +6,23 @@ interface GeneratorFunction {
6
6
* @param args A list of arguments the function accepts.
7
7
*/
8
8
new ( ...args : any [ ] ) : Generator ;
9
+ /**
10
+ * Creates a new Generator object.
11
+ * @param args A list of arguments the function accepts.
12
+ */
9
13
( ...args : any [ ] ) : Generator ;
14
+ /**
15
+ * The length of the arguments.
16
+ */
17
+ readonly length : number ;
18
+ /**
19
+ * Returns the name of the function.
20
+ */
21
+ readonly name : string ;
22
+ /**
23
+ * A reference to the prototype.
24
+ */
25
+ readonly prototype : Generator ;
10
26
}
11
27
12
28
interface GeneratorFunctionConstructor {
@@ -15,7 +31,22 @@ interface GeneratorFunctionConstructor {
15
31
* @param args A list of arguments the function accepts.
16
32
*/
17
33
new ( ...args : string [ ] ) : GeneratorFunction ;
34
+ /**
35
+ * Creates a new Generator function.
36
+ * @param args A list of arguments the function accepts.
37
+ */
18
38
( ...args : string [ ] ) : GeneratorFunction ;
39
+ /**
40
+ * The length of the arguments.
41
+ */
42
+ readonly length : number ;
43
+ /**
44
+ * Returns the name of the function.
45
+ */
46
+ readonly name : string ;
47
+ /**
48
+ * A reference to the prototype.
49
+ */
19
50
readonly prototype : GeneratorFunction ;
20
51
}
21
52
declare var GeneratorFunction : GeneratorFunctionConstructor ;
0 commit comments