mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-21 21:16:59 +02:00
refactor(types): move non-core, non-public types out of the types package (#7293)
This commit is contained in:
parent
c7a5af7c4d
commit
b49ae67521
25 changed files with 397 additions and 404 deletions
|
@ -20,6 +20,8 @@ import {
|
|||
getContentPathList,
|
||||
getDataFilePath,
|
||||
DEFAULT_PLUGIN_ID,
|
||||
type TagsListItem,
|
||||
type TagModule,
|
||||
} from '@docusaurus/utils';
|
||||
import {translateContent, getTranslationFiles} from './translations';
|
||||
|
||||
|
@ -31,13 +33,7 @@ import type {
|
|||
BlogContentPaths,
|
||||
BlogMarkdownLoaderOptions,
|
||||
} from './types';
|
||||
import type {
|
||||
LoadContext,
|
||||
Plugin,
|
||||
HtmlTags,
|
||||
TagsListItem,
|
||||
TagModule,
|
||||
} from '@docusaurus/types';
|
||||
import type {LoadContext, Plugin, HtmlTags} from '@docusaurus/types';
|
||||
import {
|
||||
generateBlogPosts,
|
||||
getSourceToPermalink,
|
||||
|
|
|
@ -7,9 +7,8 @@
|
|||
|
||||
declare module '@docusaurus/plugin-content-blog' {
|
||||
import type {MDXOptions} from '@docusaurus/mdx-loader';
|
||||
import type {FrontMatterTag} from '@docusaurus/utils';
|
||||
import type {FrontMatterTag, Tag} from '@docusaurus/utils';
|
||||
import type {Overwrite} from 'utility-types';
|
||||
import type {Tag} from '@docusaurus/types';
|
||||
|
||||
export type Assets = {
|
||||
/**
|
||||
|
@ -487,7 +486,7 @@ declare module '@theme/BlogListPage' {
|
|||
|
||||
declare module '@theme/BlogTagsListPage' {
|
||||
import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
|
||||
import type {TagsListItem} from '@docusaurus/types';
|
||||
import type {TagsListItem} from '@docusaurus/utils';
|
||||
|
||||
export interface Props {
|
||||
/** Blog sidebar. */
|
||||
|
@ -503,7 +502,7 @@ declare module '@theme/BlogTagsPostsPage' {
|
|||
import type {BlogSidebar} from '@docusaurus/plugin-content-blog';
|
||||
import type {Content} from '@theme/BlogPostPage';
|
||||
import type {Metadata} from '@theme/BlogListPage';
|
||||
import type {TagModule} from '@docusaurus/types';
|
||||
import type {TagModule} from '@docusaurus/utils';
|
||||
|
||||
export interface Props {
|
||||
/** Blog sidebar. */
|
||||
|
|
|
@ -5,8 +5,7 @@
|
|||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
import type {BrokenMarkdownLink, ContentPaths} from '@docusaurus/utils';
|
||||
import type {Tag} from '@docusaurus/types';
|
||||
import type {BrokenMarkdownLink, ContentPaths, Tag} from '@docusaurus/utils';
|
||||
import type {BlogPostMetadata} from '@docusaurus/plugin-content-blog';
|
||||
import type {Metadata as BlogPaginatedMetadata} from '@theme/BlogListPage';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue