Skip to content

Commit

Permalink
Import public types using bare specifiers
Browse files Browse the repository at this point in the history
This makes it clear the type is public. It also implicitly acts as a
test this type is public.
  • Loading branch information
remcohaszing committed Apr 24, 2024
1 parent c1cdd52 commit f35a7fd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/unified-lint-rule/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/

/**
* @typedef {[severity: import('../index.js').Severity, ...parameters: Array<unknown>]} SeverityTuple
* @typedef {[severity: import('unified-lint-rule').Severity, ...parameters: Array<unknown>]} SeverityTuple
* Parsed severty and options.
*/

Expand All @@ -14,15 +14,15 @@ import {wrap} from 'trough'
* Node kind.
* @template {any} [Option=never]
* Parameter kind.
* @param {import('../index.js').Meta | string} meta
* @param {import('unified-lint-rule').Meta | string} meta
* Info.
* @param {import('../index.js').Rule<Tree, Option>} rule
* @param {import('unified-lint-rule').Rule<Tree, Option>} rule
* Rule.
* @returns {import('unified').Plugin<[(
* | [level: import('../index.js').Label | import('../index.js').Severity, option?: Option]
* | import('../index.js').Label
* | [level: import('unified-lint-rule').Label | import('unified-lint-rule').Severity, option?: Option]
* | import('unified-lint-rule').Label
* | Option
* | import('../index.js').Severity
* | import('unified-lint-rule').Severity
* )?], Tree>}
* Plugin.
*/
Expand All @@ -40,7 +40,7 @@ export function lintRule(meta, rule) {
return plugin

/**
* @param {[level: import('../index.js').Label | import('../index.js').Severity, option?: Option] | import('../index.js').Label | Option | import('../index.js').Severity} [config]
* @param {[level: import('unified-lint-rule').Label | import('unified-lint-rule').Severity, option?: Option] | import('unified-lint-rule').Label | Option | import('unified-lint-rule').Severity} [config]
* Config.
* @returns {import('unified').Transformer<Tree> | undefined}
* Transform, if on.
Expand Down

0 comments on commit f35a7fd

Please sign in to comment.