@@ -6,7 +6,23 @@ interface GeneratorFunction {
66 * @param args A list of arguments the function accepts.
77 */
88 new ( ...args : any [ ] ) : Generator ;
9+ /**
10+ * Creates a new Generator object.
11+ * @param args A list of arguments the function accepts.
12+ */
913 ( ...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 ;
1026}
1127
1228interface GeneratorFunctionConstructor {
@@ -15,7 +31,22 @@ interface GeneratorFunctionConstructor {
1531 * @param args A list of arguments the function accepts.
1632 */
1733 new ( ...args : string [ ] ) : GeneratorFunction ;
34+ /**
35+ * Creates a new Generator function.
36+ * @param args A list of arguments the function accepts.
37+ */
1838 ( ...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+ */
1950 readonly prototype : GeneratorFunction ;
2051}
2152declare var GeneratorFunction : GeneratorFunctionConstructor ;
0 commit comments