Skip to content

Commit c5ebc57

Browse files
authored
🤖 Merge PR DefinitelyTyped#72381 feat(markdown-it-color-inline): add types by @hkleungai
1 parent 1147dfe commit c5ebc57

File tree

6 files changed

+65
-0
lines changed

6 files changed

+65
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*
2+
!**/*.d.ts
3+
!**/*.d.cts
4+
!**/*.d.mts
5+
!**/*.d.*.ts
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import MarkdownIt = require("markdown-it");
2+
3+
declare function markdownItColorInline(md: MarkdownIt): void;
4+
5+
export = markdownItColorInline;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import MarkdownIt = require("markdown-it");
2+
3+
declare const inlinecolor: MarkdownIt.ParserInline.RuleInline;
4+
5+
export = inlinecolor;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import MarkdownIt from "markdown-it";
2+
import markdownItColorInline from "markdown-it-color-inline";
3+
import inlinecolor from "markdown-it-color-inline/lib/inlinecolor";
4+
5+
declare let md: MarkdownIt;
6+
markdownItColorInline(md); // $ExpectType void
7+
8+
declare let state: MarkdownIt.StateInline;
9+
declare let silent: boolean;
10+
inlinecolor(state, silent); // $ExpectType boolean
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"private": true,
3+
"name": "@types/markdown-it-color-inline",
4+
"version": "1.9.9999",
5+
"projects": [
6+
"https://github.com/AgentBUB/markdown-it-color-inline#readme"
7+
],
8+
"dependencies": {
9+
"@types/markdown-it": "*"
10+
},
11+
"devDependencies": {
12+
"@types/markdown-it-color-inline": "workspace:."
13+
},
14+
"owners": [
15+
{
16+
"name": "Jimmy Leung",
17+
"githubUsername": "hkleungai"
18+
}
19+
]
20+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"compilerOptions": {
3+
"module": "node16",
4+
"lib": [
5+
"es6"
6+
],
7+
"noImplicitAny": true,
8+
"noImplicitThis": true,
9+
"strictFunctionTypes": true,
10+
"strictNullChecks": true,
11+
"types": [],
12+
"noEmit": true,
13+
"forceConsistentCasingInFileNames": true
14+
},
15+
"files": [
16+
"index.d.ts",
17+
"lib/inlinecolor.d.ts",
18+
"markdown-it-color-inline-tests.ts"
19+
]
20+
}

0 commit comments

Comments
 (0)