mark types as any for now

pull/4507/head
Divyansh Singh 8 months ago
parent 231fbb02d8
commit 4e542a7eca

@ -1,4 +1,3 @@
import type MarkdownIt from 'markdown-it'
import type { Options as MiniSearchOptions } from 'minisearch' import type { Options as MiniSearchOptions } from 'minisearch'
import type { ComputedRef, Ref, ShallowRef } from 'vue' import type { ComputedRef, Ref, ShallowRef } from 'vue'
import type { DocSearchProps } from './docsearch.js' import type { DocSearchProps } from './docsearch.js'
@ -6,7 +5,6 @@ import type {
LocalSearchTranslations, LocalSearchTranslations,
PageSplitSection PageSplitSection
} from './local-search.js' } from './local-search.js'
import type { MarkdownItAsync } from 'markdown-it-async'
import type { Awaitable, MarkdownEnv, PageData } from './shared.js' import type { Awaitable, MarkdownEnv, PageData } from './shared.js'
export namespace DefaultTheme { export namespace DefaultTheme {
@ -449,11 +447,7 @@ export namespace DefaultTheme {
* Allows transformation of content before indexing (node only) * Allows transformation of content before indexing (node only)
* Return empty string to skip indexing * Return empty string to skip indexing
*/ */
_render?: ( _render?: (src: string, env: MarkdownEnv, md: any) => Awaitable<string>
src: string,
env: MarkdownEnv,
md: MarkdownItAsync
) => Awaitable<string>
} }
// algolia ------------------------------------------------------------------- // algolia -------------------------------------------------------------------

Loading…
Cancel
Save