From c012b9a1b63986450f4884ea628c8e1c4ac57759 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 27 Jan 2023 18:18:20 +0100 Subject: [PATCH] Refactor types to use `CompileData` interface --- complex-types.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/complex-types.d.ts b/complex-types.d.ts index 8c8bfd0..732d5b2 100644 --- a/complex-types.d.ts +++ b/complex-types.d.ts @@ -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'