Skip to content

Commit

Permalink
Work around optional parameters without void
Browse files Browse the repository at this point in the history
  • Loading branch information
jablko committed Mar 8, 2022
1 parent 8afd265 commit a914756
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ cliCompleter.pluginId = constants.sourceId
* Plugin to validate that Markdown links and images reference existing local
* files and headings.
*
* @type {import('unified').Plugin<[Options?, FileSet?]|[Options?]|void[], Root>}
* @typedef {import('unified-lint-rule').Label|import('unified-lint-rule').Severity} Severity
* @type {import('unified').Plugin<[(Options|[Severity, Options?])?, FileSet?], Root>}
* https://github.com/microsoft/TypeScript/pull/48132
* @param [rawOptions]
* @param [fileSet]
*/
export default function remarkValidateLinks(rawOptions, fileSet) {
// Attach a `completer`.
Expand Down

0 comments on commit a914756

Please sign in to comment.