From 10309d70d3cbe0f8cdf5d6f409bc93bda5c4093c Mon Sep 17 00:00:00 2001 From: mcpiroman <38111589+mcpiroman@users.noreply.github.com> Date: Fri, 29 Jan 2021 14:25:27 +0100 Subject: [PATCH] Allow foreach loops in typescript Reflects missing ts declaration of this line: https://github.com/cheeriojs/cheerio/blob/897b37fb671382e8f804d8f1f15e379964f48ad2/lib/cheerio.js#L139 --- types/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/index.d.ts b/types/index.d.ts index 064f51df15..3d7cd34ce7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -12,6 +12,7 @@ declare namespace cheerio { [index: number]: Element; cheerio: string; length: number; + [Symbol.iterator](): IterableIterator; // Attributes