File tree Expand file tree Collapse file tree 4 files changed +24
-23
lines changed
Expand file tree Collapse file tree 4 files changed +24
-23
lines changed Original file line number Diff line number Diff line change 11import type { Literal } from 'mdast'
22
3+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
4+ export interface Math extends Literal {
5+ type : 'math'
6+ meta ?: string | null
7+ }
8+
9+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
10+ export interface InlineMath extends Literal {
11+ type : 'inlineMath'
12+ }
313declare module 'mdast-util-from-markdown' {
414 // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
515 interface CompileData {
@@ -41,17 +51,6 @@ declare module 'mdast-util-to-markdown' {
4151 }
4252}
4353
44- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
45- export interface Math extends Literal {
46- type : 'math'
47- meta ?: string | null
48- }
49-
50- // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
51- export interface InlineMath extends Literal {
52- type : 'inlineMath'
53- }
54-
5554declare module 'mdast' {
5655 // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
5756 interface StaticPhrasingContentMap {
Original file line number Diff line number Diff line change 44 * @typedef {import('mdast-util-from-markdown').Handle } FromMarkdownHandle
55 * @typedef {import('mdast-util-to-markdown').Options } ToMarkdownExtension
66 * @typedef {import('mdast-util-to-markdown').Handle } ToMarkdownHandle
7- * @typedef {import('./complex-types').Math } Math
8- * @typedef {import('./complex-types').InlineMath } InlineMath
7+ * @typedef {import('./complex-types.js ').Math } Math
8+ * @typedef {import('./complex-types.js ').InlineMath } InlineMath
99 *
1010 * @typedef ToOptions
1111 * @property {boolean } [singleDollarTextMath=true]
Original file line number Diff line number Diff line change 5555 "xo" : " ^0.53.0"
5656 },
5757 "scripts" : {
58- "build" : " rimraf \" {index,test}.d.ts\" && tsc && type-coverage" ,
58+ "prepack" : " npm run build && npm run format" ,
59+ "build" : " tsc --build --clean && tsc --build && type-coverage" ,
5960 "format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
6061 "test-api" : " node --conditions development test.js" ,
61- "test-coverage" : " c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 -- reporter lcov node --conditions development test.js " ,
62+ "test-coverage" : " c8 --check-coverage --100 --reporter lcov npm run test-api " ,
6263 "test" : " npm run build && npm run format && npm run test-coverage"
6364 },
6465 "prettier" : {
Original file line number Diff line number Diff line change 11{
2- "include" : [" *.js" ],
2+ "include" : [" **/*.js" , " complex-types.d.ts" ],
3+ "exclude" : [" coverage/" , " node_modules/" ],
34 "compilerOptions" : {
4- "target" : " ES2020" ,
5- "lib" : [" ES2020" ],
6- "module" : " ES2020" ,
7- "moduleResolution" : " node" ,
8- "allowJs" : true ,
95 "checkJs" : true ,
106 "declaration" : true ,
117 "emitDeclarationOnly" : true ,
12- "allowSyntheticDefaultImports" : true ,
8+ "exactOptionalPropertyTypes" : true ,
9+ "forceConsistentCasingInFileNames" : true ,
10+ "lib" : [" es2020" ],
11+ "module" : " node16" ,
12+ "newLine" : " lf" ,
1313 "skipLibCheck" : true ,
14- "strict" : true
14+ "strict" : true ,
15+ "target" : " es2020"
1516 }
1617}
You can’t perform that action at this time.
0 commit comments