Rename type declaration file micromark.d.ts to micromark.d.cts in markdownlint-micromark so TypeScript will successfully reference it via its package.json/types (fixes #1160, closes #1160).

This commit is contained in:
David Anson 2024-03-27 20:35:06 -07:00
parent b7ed1e6540
commit 0dbbedb2f7
4 changed files with 7 additions and 7 deletions

View file

@ -6,9 +6,9 @@
// 1. npm install
// 2. Comment-out micromark-util-types/ParseContext in node_modules/micromark-extension-gfm-footnote/index.d.ts
// 3. npm run types
// 4. Remove "import { KatexOptions as KatexOptions_2 } from 'katex';"
// 5. Replace "KatexOptions_2" with "Object"
// 6. Append "declare module 'micromark-util-types' { interface TokenTypeMap { ... } }" from:
// 4. Remove "import { KatexOptions as KatexOptions_2 } from 'katex';" in micromark.d.cts
// 5. Replace "KatexOptions_2" with "Object" in micromark.d.cts
// 6. Append "declare module 'micromark-util-types' { interface TokenTypeMap { ... } }" in micromark.d.cts from:
// - node_modules/micromark-extension-directive/index.d.ts
// - node_modules/micromark-extension-gfm-autolink-literal/index.d.ts
// - node_modules/micromark-extension-gfm-footnote/index.d.ts