Skip to content

Commit a914756

Browse files
committed
Work around optional parameters without void
1 parent 8afd265 commit a914756

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ cliCompleter.pluginId = constants.sourceId
5252
* Plugin to validate that Markdown links and images reference existing local
5353
* files and headings.
5454
*
55-
* @type {import('unified').Plugin<[Options?, FileSet?]|[Options?]|void[], Root>}
55+
* @typedef {import('unified-lint-rule').Label|import('unified-lint-rule').Severity} Severity
56+
* @type {import('unified').Plugin<[(Options|[Severity, Options?])?, FileSet?], Root>}
57+
* https://github.com/microsoft/TypeScript/pull/48132
58+
* @param [rawOptions]
59+
* @param [fileSet]
5660
*/
5761
export default function remarkValidateLinks(rawOptions, fileSet) {
5862
// Attach a `completer`.

0 commit comments

Comments
 (0)