From 29ca96dcfea1a0b3d07f0d4dda5445d8990f12dd Mon Sep 17 00:00:00 2001 From: WhizSid <44908250+whizsid@users.noreply.github.com> Date: Thu, 4 Jul 2019 02:27:59 +0530 Subject: [PATCH] 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`. --- types/cheerio/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/cheerio/index.d.ts b/types/cheerio/index.d.ts index f25c978ed0..322394f5b6 100644 --- a/types/cheerio/index.d.ts +++ b/types/cheerio/index.d.ts @@ -265,6 +265,7 @@ interface CheerioElement { parentNode: CheerioElement; nodeValue: string; data?: string; + startIndex?: number; } interface CheerioAPI extends CheerioSelector, CheerioStatic {