Added startIndex property (#36528)

When I passed `{ xmlMode: true, withStartIndices: true }`  as second argument to `cheerio.load` it will return `CheerioElement`s with a property `startIndex`.
This commit is contained in:
WhizSid
2019-07-03 13:57:59 -07:00
committed by Ryan Cavanaugh
parent 84f0283b53
commit 29ca96dcfe
+1
View File
@@ -265,6 +265,7 @@ interface CheerioElement {
parentNode: CheerioElement;
nodeValue: string;
data?: string;
startIndex?: number;
}
interface CheerioAPI extends CheerioSelector, CheerioStatic {