Use hashmap signature instead of Object

This commit is contained in:
Alexey Pelykh
2017-03-25 13:50:00 +02:00
committed by GitHub
parent bb7d6b2d08
commit 0d2658c362

View File

@@ -250,7 +250,7 @@ interface CheerioElement {
tagName: string;
type: string;
name: string;
attribs: Object;
attribs: {[attr: string]: string};
children: CheerioElement[];
childNodes: CheerioElement[];
lastChild: CheerioElement;
@@ -272,4 +272,4 @@ declare var cheerio:CheerioAPI;
declare module "cheerio" {
export = cheerio;
}
}