From c0ae122b176e7c0e4006c9245fd10de406acc5d3 Mon Sep 17 00:00:00 2001 From: Abd ar-Rahman Hamidi Date: Wed, 6 Apr 2016 12:11:39 +0500 Subject: [PATCH] Add overloading to `get` method e.g. ```ts $("a[href]").map((index, element) => $(element).attr("href")).get(); ``` it returns an array of strings --- cheerio/cheerio.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cheerio/cheerio.d.ts b/cheerio/cheerio.d.ts index 0f3e4282e..72d2c6a2c 100644 --- a/cheerio/cheerio.d.ts +++ b/cheerio/cheerio.d.ts @@ -106,6 +106,7 @@ interface Cheerio { eq(index: number): Cheerio; + get(): string[]; get(): CheerioElement[]; get(index: number): CheerioElement;