Skip to content

Commit ee2a909

Browse files
["Two small changes"]
1 parent a065331 commit ee2a909

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

src/lib/es2015.generator.d.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

1228
interface 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
}
2152
declare var GeneratorFunction: GeneratorFunctionConstructor;

0 commit comments

Comments
 (0)