From d02090db2c5c53bc5d123a518c3f24380a5459f0 Mon Sep 17 00:00:00 2001 From: David Anson Date: Tue, 4 Mar 2025 06:53:03 +0000 Subject: [PATCH] Remove outdated use of "@ts-expect-error https://github.com/microsoft/TypeScript/issues/52529". --- helpers/helpers.cjs | 3 --- helpers/micromark-helpers.cjs | 1 - lib/markdownit.cjs | 2 -- 3 files changed, 6 deletions(-) diff --git a/helpers/helpers.cjs b/helpers/helpers.cjs index 9bf51c52..e419ff62 100644 --- a/helpers/helpers.cjs +++ b/helpers/helpers.cjs @@ -9,11 +9,8 @@ const { newLineRe, nextLinesRe } = require("./shared.cjs"); module.exports.newLineRe = newLineRe; module.exports.nextLinesRe = nextLinesRe; -// @ts-expect-error https://github.com/microsoft/TypeScript/issues/52529 /** @typedef {import("../lib/exports.mjs").RuleOnError} RuleOnError */ -// @ts-expect-error https://github.com/microsoft/TypeScript/issues/52529 /** @typedef {import("../lib/exports.mjs").RuleOnErrorFixInfo} RuleOnErrorFixInfo */ -// @ts-expect-error https://github.com/microsoft/TypeScript/issues/52529 /** @typedef {import("../lib/exports.mjs").MicromarkToken} MicromarkToken */ // eslint-disable-next-line jsdoc/valid-types /** @typedef {import("micromark-extension-gfm-footnote", { with: { "resolution-mode": "import" } })} */ diff --git a/helpers/micromark-helpers.cjs b/helpers/micromark-helpers.cjs index 87e75cbe..f9f21f03 100644 --- a/helpers/micromark-helpers.cjs +++ b/helpers/micromark-helpers.cjs @@ -6,7 +6,6 @@ const { flatTokensSymbol, htmlFlowSymbol } = require("./shared.cjs"); // eslint-disable-next-line jsdoc/valid-types /** @typedef {import("micromark-util-types", { with: { "resolution-mode": "import" } }).TokenType} TokenType */ -// @ts-expect-error https://github.com/microsoft/TypeScript/issues/52529 /** @typedef {import("../lib/exports.mjs").MicromarkToken} Token */ /** diff --git a/lib/markdownit.cjs b/lib/markdownit.cjs index 818c85dc..05a0cc23 100644 --- a/lib/markdownit.cjs +++ b/lib/markdownit.cjs @@ -6,9 +6,7 @@ const { newLineRe } = require("../helpers"); // @ts-expect-error https://github.com/microsoft/TypeScript/issues/52529 /** @typedef {import("markdownlint").MarkdownIt} MarkdownIt */ -// @ts-expect-error https://github.com/microsoft/TypeScript/issues/52529 /** @typedef {import("markdownlint").MarkdownItToken} MarkdownItToken */ -// @ts-expect-error https://github.com/microsoft/TypeScript/issues/52529 /** @typedef {import("markdownlint").Plugin} Plugin */ /**