From bb778b7f6dc4dd3890e5a8c5bc4fccf56979cd6a Mon Sep 17 00:00:00 2001 From: spiffytech Date: Fri, 6 Oct 2017 14:22:57 -0400 Subject: [PATCH] rss: fix item enclosure optional property (#20164) For item enclosures, it's _either_ a file _or_ a URL. The docs specify that one of the two is always optional, and the source code only mandates the `url`, and may ignore the `file`. https://www.npmjs.com/package/rss https://github.com/dylang/node-rss/blob/master/lib/index.js#L83 --- types/rss/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/rss/index.d.ts b/types/rss/index.d.ts index bd5653bf8f..7de1fab2aa 100644 --- a/types/rss/index.d.ts +++ b/types/rss/index.d.ts @@ -90,7 +90,7 @@ declare namespace NodeRSS { /** * Path to binary file (or URL). */ - file: string; + file?: string; /** * Size of the file. */