|
3 | 3 | * An author object |
4 | 4 | * @property {string} name |
5 | 5 | * Example: `'Acme, Inc.'` or `'Jane Doe'` |
6 | | - * @property {string} [email] |
| 6 | + * @property {string|undefined} [email] |
7 | 7 | * Example: `john@example.org` |
8 | | - * @property {string} [url] |
| 8 | + * @property {string|undefined} [url] |
9 | 9 | * Example: `'https://example.org/john'`. |
10 | 10 | * `url` is used in `atom`, not in `rss`. |
11 | 11 | * |
|
26 | 26 | * @property {string} url |
27 | 27 | * Full URL to the site (required, example: |
28 | 28 | * `'https://www.theguardian.com/world/zimbabwe'`). |
29 | | - * @property {string} [feedUrl] |
| 29 | + * @property {string|undefined} [feedUrl] |
30 | 30 | * Full URL to this channel (example: |
31 | 31 | * `'https://www.adweek.com/feed/'`). |
32 | 32 | * Make sure to pass different ones to `rss` and `atom`! |
33 | 33 | * You *should* define this. |
34 | | - * @property {string} [description] |
| 34 | + * @property {string|undefined} [description] |
35 | 35 | * Short description of the channel (example: `Album Reviews`). |
36 | 36 | * You *should* define this. |
37 | | - * @property {string} [lang] |
| 37 | + * @property {string|undefined} [lang] |
38 | 38 | * BCP 47 language tag representing the language of the whole channel (example: |
39 | 39 | * `'fr-BE'`). |
40 | 40 | * You *should* define this. |
41 | | - * @property {string|Author} [author] Optional author of the whole channel. |
| 41 | + * @property {string|Author|undefined} [author] Optional author of the whole channel. |
42 | 42 | * Either `string`, in which case it’s as passing `{name: string}`. |
43 | 43 | * Or an author object. |
44 | | - * @property {Array<string>} [tags] Categories of the channel (example: |
| 44 | + * @property {Array<string>|undefined} [tags] Categories of the channel (example: |
45 | 45 | * `['JavaScript', 'React']`). |
46 | 46 | * |
47 | 47 | * @typedef Entry |
48 | 48 | * Data on a single item. |
49 | | - * @property {string} [title] |
| 49 | + * @property {string|undefined} [title] |
50 | 50 | * Title of the item (example: `'Playboi Carti: Whole Lotta Red'`). |
51 | 51 | * Either `title`, `description`, or `descriptionHtml` must be set. |
52 | | - * @property {string} [description] |
| 52 | + * @property {string|undefined} [description] |
53 | 53 | * Either the whole post or an excerpt of it (example: `'Lorem'`). |
54 | 54 | * Should be plain text. |
55 | 55 | * `descriptionHtml` is preferred over plain text `description`. |
56 | 56 | * Either `title`, `description`, or `descriptionHtml` must be set. |
57 | | - * @property {string} [descriptionHtml] |
| 57 | + * @property {string|undefined} [descriptionHtml] |
58 | 58 | * Either the whole post or an excerpt of it (example: `'<p>Lorem</p>'`). |
59 | 59 | * Should be serialized HTML. |
60 | 60 | * `descriptionHtml` is preferred over plain text `description`. |
61 | 61 | * Either `title`, `description`, or `descriptionHtml` must be set. |
62 | | - * @property {string|Author} [author] |
| 62 | + * @property {string|Author|undefined} [author] |
63 | 63 | * Entry version of `channel.author`. |
64 | 64 | * You *should* define this. |
65 | 65 | * For `atom`, it is required to either set `channel.author` or set `author` |
66 | 66 | * on all entries. |
67 | | - * @property {string} [url] |
| 67 | + * @property {string|undefined} [url] |
68 | 68 | * Full URL of this entry on the *site* (example: |
69 | 69 | * `'https://pitchfork.com/reviews/albums/roberta-flack-first-take'`). |
70 | | - * @property {Date|number|string} [published] |
| 70 | + * @property {Date|number|string|undefined} [published] |
71 | 71 | * When the entry was first published (`Date` or value for `new Date(x)`, |
72 | 72 | * optional). |
73 | | - * @property {Date|number|string} [modified] |
| 73 | + * @property {Date|number|string|undefined} [modified] |
74 | 74 | * When the entry was last modified (`Date` or value for `new Date(x)`, |
75 | 75 | * optional). |
76 | | - * @property {Array<string>} [tags] |
| 76 | + * @property {Array<string>|undefined} [tags] |
77 | 77 | * Categories of the entry (`Array<string>?`, example: |
78 | 78 | * `['laravel', 'debugging']`). |
79 | | - * @property {Enclosure} [enclosure] |
| 79 | + * @property {Enclosure|undefined} [enclosure] |
80 | 80 | * Attached media. |
81 | 81 | */ |
82 | 82 |
|
|
0 commit comments