|
1 |
| -interface GeneratorFunction extends Function { } |
| 1 | +interface Generator extends Iterator<any> { } |
| 2 | + |
| 3 | +interface GeneratorFunction { |
| 4 | + /** |
| 5 | + * Creates a new Generator object. |
| 6 | + * @param args A list of arguments the function accepts. |
| 7 | + */ |
| 8 | + new (...args: any[]): Generator; |
| 9 | + /** |
| 10 | + * Creates a new Generator object. |
| 11 | + * @param args A list of arguments the function accepts. |
| 12 | + */ |
| 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; |
| 26 | +} |
2 | 27 |
|
3 | 28 | interface GeneratorFunctionConstructor {
|
4 | 29 | /**
|
5 | 30 | * Creates a new Generator function.
|
6 | 31 | * @param args A list of arguments the function accepts.
|
7 | 32 | */
|
8 | 33 | new (...args: string[]): GeneratorFunction;
|
| 34 | + /** |
| 35 | + * Creates a new Generator function. |
| 36 | + * @param args A list of arguments the function accepts. |
| 37 | + */ |
9 | 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 | + */ |
10 | 50 | readonly prototype: GeneratorFunction;
|
11 | 51 | }
|
12 | 52 | declare var GeneratorFunction: GeneratorFunctionConstructor;
|
0 commit comments