Skip to content

Commit b0a7452

Browse files
committed
Refactor code-style
1 parent 0233cae commit b0a7452

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/atom.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {toAuthor, toDate} from './util.js'
1818
* Same API as `rss` otherwise.
1919
*
2020
* @param {Channel} channel
21-
* @param {Array.<Entry>} [data]
21+
* @param {Array<Entry>} [data]
2222
* @returns {Root}
2323
*/
2424
export function atom(channel, data) {
@@ -75,7 +75,7 @@ export function atom(channel, data) {
7575

7676
while (++index < data.length) {
7777
const datum = data[index]
78-
/** @type {Array.<Element>} */
78+
/** @type {Array<Element>} */
7979
const children = []
8080

8181
if (!datum.title && !datum.description && !datum.descriptionHtml) {

lib/rss.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import {toAuthor, toDate} from './util.js'
1818
* Same API as `atom` otherwise.
1919
*
2020
* @param {Channel} channel
21-
* @param {Array.<Entry>} [data]
21+
* @param {Array<Entry>} [data]
2222
* @returns {Root}
2323
*/
2424
export function rss(channel, data) {
@@ -77,7 +77,7 @@ export function rss(channel, data) {
7777
let index = -1
7878
while (++index < data.length) {
7979
const datum = data[index]
80-
/** @type {Array.<Element>} */
80+
/** @type {Array<Element>} */
8181
const children = []
8282

8383
if (!datum.title && !datum.description && !datum.descriptionHtml) {

lib/types.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* @property {string} [description] Short description of the channel (example: `Album Reviews`). You *should* define this.
1717
* @property {string} [lang] BCP 47 language tag representing the language of the whole channel (example: `'fr-BE'`). You *should* define this.
1818
* @property {string|Author} [author] Optional author of the whole channel. Either `string`, in which case it’s as passing `{name: string}`. Or an author object.
19-
* @property {Array.<string>} [tags] Categories of the channel (example: `['JavaScript', 'React']`).
19+
* @property {Array<string>} [tags] Categories of the channel (example: `['JavaScript', 'React']`).
2020
*
2121
* @typedef Entry Data on a single item.
2222
* @property {string} [title] Title of the item (example: `'Playboi Carti: Whole Lotta Red'`). Either `title`, `description`, or `descriptionHtml` must be set.
@@ -26,7 +26,7 @@
2626
* @property {string} [url] Full URL of this entry on the *site* (example: `'https://pitchfork.com/reviews/albums/roberta-flack-first-take'`).
2727
* @property {Date|number|string} [published] When the entry was first published (`Date` or value for `new Date(x)`, optional).
2828
* @property {Date|number|string} [modified] When the entry was last modified (`Date` or value for `new Date(x)`, optional).
29-
* @property {Array.<string>} [tags] Categories of the entry (`Array.<string>?`, example: `['laravel', 'debugging']`).
29+
* @property {Array<string>} [tags] Categories of the entry (`Array<string>?`, example: `['laravel', 'debugging']`).
3030
* @property {Enclosure} [enclosure] Attached media
3131
*/
3232

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Or an object with the following fields:
200200

201201
###### `channel.tags`
202202

203-
Categories of the channel (`Array.<string>?`, example: `['JavaScript',
203+
Categories of the channel (`Array<string>?`, example: `['JavaScript',
204204
'React']`).
205205

206206
### `Entry`
@@ -249,7 +249,7 @@ When the entry was last modified (`Date` or value for `new Date(x)`, optional).
249249

250250
###### `entry.tags`
251251

252-
Categories of the entry (`Array.<string>?`, example: `['laravel',
252+
Categories of the entry (`Array<string>?`, example: `['laravel',
253253
'debugging']`).
254254

255255
###### `entry.enclosure`

0 commit comments

Comments
 (0)