Skip to content

Commit c012b9a

Browse files
committed
Refactor types to use CompileData interface
1 parent ca26940 commit c012b9a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: complex-types.d.ts

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
import type {Literal} from 'mdast'
22

3+
declare module 'mdast-util-from-markdown' {
4+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
5+
interface CompileData {
6+
// Register a new field.
7+
mathFlowInside?: boolean | undefined
8+
}
9+
}
10+
311
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
412
export interface Math extends Literal {
513
type: 'math'

0 commit comments

Comments
 (0)