mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
fix(cheerio): #attr() can be used without arguments (#20193)
This commit is contained in:
committed by
Wesley Wigham
parent
3653200be5
commit
c939211aa6
@@ -52,6 +52,7 @@ var $multiEl = $('selector', 'selector', 'selector');
|
||||
*/
|
||||
|
||||
// attr
|
||||
$el.attr();
|
||||
$el.attr('id');
|
||||
$el.attr('id', 'favorite').html();
|
||||
|
||||
|
||||
Vendored
+1
@@ -13,6 +13,7 @@ interface Cheerio {
|
||||
|
||||
// Attributes
|
||||
|
||||
attr(): {[attr: string]: string};
|
||||
attr(name: string): string;
|
||||
attr(name: string, value: any): Cheerio;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user