mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
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:
1 parent
513510a89a
commit
c0ae122b17
1 file changed
+1
Vendored
+1
@@ -106,6 +106,7 @@ interface Cheerio {
|
||||
|
||||
eq(index: number): Cheerio;
|
||||
|
||||
get(): string[];
|
||||
get(): CheerioElement[];
|
||||
get(index: number): CheerioElement;
|
||||
|
||||
|
||||
Reference in new issue
Block a user