diff --git a/src/getJsdocProcessorPlugin.cts b/src/getJsdocProcessorPlugin.cts index 142035b65..8c56113eb 100644 --- a/src/getJsdocProcessorPlugin.cts +++ b/src/getJsdocProcessorPlugin.cts @@ -1,3 +1,5 @@ import {getJsdocProcessorPlugin} from './getJsdocProcessorPlugin.js'; -exports.getJsdocProcessorPlugin = getJsdocProcessorPlugin; +export = { + getJsdocProcessorPlugin: getJsdocProcessorPlugin as typeof getJsdocProcessorPlugin +}; diff --git a/src/iterateJsdoc.cts b/src/iterateJsdoc.cts index 9b94cff80..8bb743633 100644 --- a/src/iterateJsdoc.cts +++ b/src/iterateJsdoc.cts @@ -1,6 +1,11 @@ -import iterateJsdoc, {getSettings, parseComment} from './iterateJsdoc.js'; +import iterateJsdoc, {getSettings, parseComment, type JsdocVisitor, type RuleConfig} from './iterateJsdoc.js'; -export = iterateJsdoc; +const exp = iterateJsdoc as ((iterator: JsdocVisitor, ruleConfig: RuleConfig) => import('eslint').Rule.RuleModule) & { + getSettings: typeof getSettings, + parseComment: typeof parseComment +}; -exports.getSettings = getSettings; -exports.parseComment = parseComment; +exp.getSettings = getSettings; +exp.parseComment = parseComment; + +export = exp;