Skip to content

Commit

Permalink
Refactor types to use CompileData interface
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 27, 2023
1 parent ca26940 commit c012b9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions complex-types.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import type {Literal} from 'mdast'

declare module 'mdast-util-from-markdown' {
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
interface CompileData {
// Register a new field.
mathFlowInside?: boolean | undefined
}
}

// eslint-disable-next-line @typescript-eslint/consistent-type-definitions
export interface Math extends Literal {
type: 'math'
Expand Down

0 comments on commit c012b9a

Please sign in to comment.