/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/docusaurus-mdx-loader/src/options.ts
33 строки
1 KB
Sébastien Lorber
chore: use modern Node APIs (AI-assisted) (#12083)
29 май 2026, 18:17
Не верифицирован
29 май 2026, 18:17
98a605f
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type {MDXOptions, SimpleProcessors} from './processor'; import type {MarkdownConfig} from '@docusaurus/types'; import type {ResolveMarkdownLink} from './remark/resolveMarkdownLinks'; export type Options = Partial<MDXOptions> & { dependencies?: string[]; markdownConfig: MarkdownConfig; staticDirs: string[]; siteDir: string; isMDXPartial?: (filePath: string) => boolean; isMDXPartialFrontMatterWarningDisabled?: boolean; removeContentTitle?: boolean; metadataPath?: (filePath: string) => string; createAssets?: (metadata: { filePath: string; frontMatter: {[key: string]: unknown}; }) => {[key: string]: unknown}; resolveMarkdownLink?: ResolveMarkdownLink; // Will usually be created by "createMDXLoaderItem" processors?: SimpleProcessors; crossCompilerCache?: Map<string, CrossCompilerCacheEntry>; // MDX => Promise<JSX> cache }; type CrossCompilerCacheEntry = PromiseWithResolvers<string>;