mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #29956 from AzSiAz/master
Add correct overloading to `get` method
This commit is contained in:
Vendored
+3
-4
@@ -1,6 +1,6 @@
|
||||
// Type definitions for Cheerio v0.22.0
|
||||
// Project: https://github.com/cheeriojs/cheerio
|
||||
// Definitions by: Bret Little <https://github.com/blittle>, VILIC VANE <http://vilic.info>, Wayne Maurer <https://github.com/wmaurer>, Umar Nizamani <https://github.com/umarniz>, LiJinyao <https://github.com/LiJinyao>, Chennakrishna <https://github.com/chennakrishna8>
|
||||
// Definitions by: Bret Little <https://github.com/blittle>, VILIC VANE <http://vilic.info>, Wayne Maurer <https://github.com/wmaurer>, Umar Nizamani <https://github.com/umarniz>, LiJinyao <https://github.com/LiJinyao>, Chennakrishna <https://github.com/chennakrishna8>, AzSiAz <https://github.com/AzSiAz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface Cheerio {
|
||||
@@ -111,9 +111,8 @@ interface Cheerio {
|
||||
|
||||
eq(index: number): Cheerio;
|
||||
|
||||
get(): string[];
|
||||
get(): CheerioElement[];
|
||||
get(index: number): CheerioElement;
|
||||
get(): any[];
|
||||
get(index: number): any;
|
||||
|
||||
index(): number;
|
||||
index(selector: string): number;
|
||||
|
||||
Reference in New Issue
Block a user