File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ import { parseApiDoc } from './utils/parse.mjs';
5
5
/**
6
6
* This generator generates a flattened list of metadata entries from a API doc
7
7
*
8
- * @typedef {ParserOutput<import('mdast').Root>[] } Input
8
+ * @typedef {Array< ParserOutput<import('mdast').Root>> } Input
9
9
*
10
- * @type {GeneratorMetadata<Input, ApiDocMetadataEntry[] > }
10
+ * @type {GeneratorMetadata<Input, Array< ApiDocMetadataEntry> > }
11
11
*/
12
12
export default {
13
13
name : 'metadata' ,
@@ -20,7 +20,7 @@ export default {
20
20
21
21
/**
22
22
* @param {Input } inputs
23
- * @returns {Promise<ApiDocMetadataEntry[] > }
23
+ * @returns {Promise<Array< ApiDocMetadataEntry> > }
24
24
*/
25
25
async generate ( inputs ) {
26
26
return inputs . flatMap ( input => parseApiDoc ( input ) ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import createMetadata from '../../../metadata.mjs';
15
15
* This generator generates a flattened list of metadata entries from a API doc
16
16
*
17
17
* @param {ParserOutput<import('mdast').Root> } input
18
- * @returns {Promise<ApiDocMetadataEntry[] > }
18
+ * @returns {Promise<Array< ApiDocMetadataEntry> > }
19
19
*/
20
20
export const parseApiDoc = ( { file, tree } ) => {
21
21
/**
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ const createLoader = () => {
15
15
/**
16
16
* Loads API Doc files and transforms it into VFiles
17
17
*
18
- * @param {string[] } searchPath A glob/path for API docs to be loaded
19
- * @param {string[] | undefined } ignorePath A glob/path of files to ignore
18
+ * @param {Array< string> } searchPath A glob/path for API docs to be loaded
19
+ * @param {Array< string> | undefined } [ ignorePath] A glob/path of files to ignore
20
20
* The input string can be a simple path (relative or absolute)
21
21
* The input string can also be any allowed glob string
22
22
*
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ const createParser = linter => {
47
47
* and it simply wraps parseApiDoc with the given API docs
48
48
*
49
49
* @param {Array<import('vfile').VFile | Promise<import('vfile').VFile>> } apiDocs List of API doc files to be parsed
50
- * @returns {Promise<ParserOutput<import('mdast').Root>[] > }
50
+ * @returns {Promise<Array< ParserOutput<import('mdast').Root>> > }
51
51
*/
52
52
const parseApiDocs = async apiDocs => {
53
53
// We do a Promise.all, to ensure that each API doc is resolved asynchronously
You can’t perform that action at this time.
0 commit comments