From 83146bf4e5fc65acafde5617ff8490b421868c58 Mon Sep 17 00:00:00 2001 From: Yu-Hsin Lu Date: Thu, 23 Nov 2017 14:42:28 +0800 Subject: [PATCH] Modify data attribute of CheerioElement `data` attribute is a option field. --- types/cheerio/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/cheerio/index.d.ts b/types/cheerio/index.d.ts index 7ea8360849..8250848374 100644 --- a/types/cheerio/index.d.ts +++ b/types/cheerio/index.d.ts @@ -263,7 +263,7 @@ interface CheerioElement { parent: CheerioElement; parentNode: CheerioElement; nodeValue: string; - data: string; + data?: string; } interface CheerioAPI extends CheerioSelector, CheerioStatic {