mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-24 09:50:13 +01:00
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:
parent
b7ed1e6540
commit
0dbbedb2f7
4 changed files with 7 additions and 7 deletions
6
micromark/types.d.ts
vendored
6
micromark/types.d.ts
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue