Skip to content

Commit

Permalink
fix(types): use named import for ParserBlock.RuleBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Apr 14, 2024
1 parent 573ce17 commit fd237fa
Show file tree
Hide file tree
Showing 11 changed files with 152 additions and 152 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,22 @@
},
"prettier": "@meteorlxy/prettier-config",
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@commitlint/cli": "^19.2.2",
"@commitlint/config-conventional": "^19.2.2",
"@lerna-lite/cli": "^3.3.2",
"@lerna-lite/publish": "^3.3.2",
"@meteorlxy/eslint-config": "^3.3.1",
"@meteorlxy/prettier-config": "^3.2.0",
"@meteorlxy/tsconfig": "^3.0.0",
"@vitest/coverage-istanbul": "^1.4.0",
"@vitest/coverage-istanbul": "^1.5.0",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"sort-package-json": "^2.10.0",
"typescript": "^5.4.4",
"typescript": "^5.4.5",
"unbuild": "^2.0.0",
"vitest": "^1.4.0"
"vitest": "^1.5.0"
},
"packageManager": "[email protected].6"
"packageManager": "[email protected].7"
}
2 changes: 1 addition & 1 deletion packages/plugin-component/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"test": "vitest"
},
"dependencies": {
"@types/markdown-it": "^14.0.0",
"@types/markdown-it": "^14.0.1",
"markdown-it": "^14.1.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-component/src/html-block-rule.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type ParserBlock from 'markdown-it/lib/parser_block.mjs';
import type { RuleBlock } from 'markdown-it/lib/parser_block.mjs';
import {
HTML_OPEN_AND_CLOSE_TAG_IN_THE_SAME_LINE_RE,
HTML_OPEN_CLOSE_TAG_RE,
Expand Down Expand Up @@ -58,7 +58,7 @@ const createHtmlSequences = ({

export const createHtmlBlockRule = (
options: Required<ComponentPluginOptions>,
): ParserBlock.RuleBlock => {
): RuleBlock => {
const HTML_SEQUENCES = createHtmlSequences(options);

return (state, startLine, endLine, silent): boolean => {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-frontmatter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
},
"dependencies": {
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^14.0.0",
"@types/markdown-it": "^14.0.1",
"gray-matter": "^4.0.3",
"markdown-it": "^14.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-headers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@mdit-vue/shared": "workspace:*",
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^14.0.0",
"@types/markdown-it": "^14.0.1",
"markdown-it": "^14.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-sfc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"dependencies": {
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^14.0.0",
"@types/markdown-it": "^14.0.1",
"markdown-it": "^14.1.0"
},
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-title/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"@mdit-vue/shared": "workspace:*",
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^14.0.0",
"@types/markdown-it": "^14.0.1",
"markdown-it": "^14.1.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-toc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@mdit-vue/shared": "workspace:*",
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^14.0.0",
"@types/markdown-it": "^14.0.1",
"markdown-it": "^14.1.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-toc/src/create-toc-block-rule.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type ParserBlock from 'markdown-it/lib/parser_block.mjs';
import type { RuleBlock } from 'markdown-it/lib/parser_block.mjs';
import type { TocPluginOptions } from './types.js';

/**
Expand All @@ -17,7 +17,7 @@ export const createTocBlockRule =
}: Pick<
Required<TocPluginOptions>,
'containerClass' | 'containerTag' | 'pattern'
>): ParserBlock.RuleBlock =>
>): RuleBlock =>
(state, startLine, endLine, silent): boolean => {
// if it's indented more than 3 spaces, it should be a code block
if (state.sCount[startLine] - state.blkIndent >= 4) {
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"dependencies": {
"@mdit-vue/types": "workspace:*",
"@types/markdown-it": "^14.0.0",
"@types/markdown-it": "^14.0.1",
"markdown-it": "^14.1.0"
},
"publishConfig": {
Expand Down

0 comments on commit fd237fa

Please sign in to comment.