8 lines
212 B
TypeScript
8 lines
212 B
TypeScript
//// [generatorOverloads2.ts]
|
|
declare module M {
|
|
function* f(s: string): Iterable<any>;
|
|
function* f(s: number): Iterable<any>;
|
|
function* f(s: any): Iterable<any>;
|
|
}
|
|
|
|
//// [generatorOverloads2.js]
|