diff --git a/lib/index.js b/lib/index.js index 6851d7b..69ad924 100644 --- a/lib/index.js +++ b/lib/index.js @@ -31,9 +31,9 @@ * * @typedef Context * Processing context. - * @property {FileSet | undefined} fileSet + * @property {FileSet} fileSet * Internally used info. - * @property {Array | undefined} files + * @property {Array} files * Processed files. * * @typedef Options @@ -119,7 +119,7 @@ * @property {VFileReporter | string | undefined} [reporter] * Reporter to use (default: `'vfile-reporter'`); if a `string` is passed, * it’s loaded from `cwd`, and `'vfile-reporter-'` can be omitted - * @property {VFileReporterOptions | undefined} [reporterOptions] + * @property {VFileReporterKnownFields & {[key: string]: unknown} | undefined} [reporterOptions] * Config to pass to the used reporter (optional). * @property {UnifiedSettings | undefined} [settings] * Configuration for the parser and compiler of the processor (optional). @@ -190,13 +190,10 @@ * for unknown fields in options and async support. * @param {Array} files * Files. - * @param {VFileReporterOptions} options + * @param {VFileReporterKnownFields & {[key: string]: unknown}} options * Configuration. * @returns {Promise | string} * Report. - * - * @typedef {VFileReporterKnownFields & {[key: string]: unknown}} VFileReporterOptions - * Configuration. */ import process from 'node:process'