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
This commit is contained in:
spiffytech
2017-10-06 11:22:57 -07:00
committed by Ryan Cavanaugh
parent 6a96efd84a
commit bb778b7f6d
+1 -1
View File
@@ -90,7 +90,7 @@ declare namespace NodeRSS {
/**
* Path to binary file (or URL).
*/
file: string;
file?: string;
/**
* Size of the file.
*/