Add overloading to get method

e.g.

```ts
$("a[href]").map((index, element) => $(element).attr("href")).get();
```

it returns an array of strings
This commit is contained in:
Abd ar-Rahman Hamidi
2016-04-06 12:11:39 +05:00
parent 513510a89a
commit c0ae122b17
+1
View File
@@ -106,6 +106,7 @@ interface Cheerio {
eq(index: number): Cheerio;
get(): string[];
get(): CheerioElement[];
get(index: number): CheerioElement;