Skip to content

Commit

Permalink
fix typecheck
Browse files Browse the repository at this point in the history
  • Loading branch information
OzakIOne committed Jul 1, 2024
1 parent ece683a commit aec2154
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-blog/src/authors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import {normalizeUrl} from '@docusaurus/utils';
import {paginateBlogPosts} from './blogUtils';
import type {
Author,
AuthorsMap,
BlogPageAuthors,
BlogPost,
BlogPostFrontMatter,
BlogPostFrontMatterAuthor,
} from '@docusaurus/plugin-content-blog';
import type {AuthorsMap} from './authorsMap';

type AuthorsParam = {
frontMatter: BlogPostFrontMatter;
Expand Down
3 changes: 1 addition & 2 deletions packages/docusaurus-plugin-content-blog/src/authorsMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ import type {
Author,
AuthorAttributes,
AuthorPage,
AuthorsMap,
} from '@docusaurus/plugin-content-blog';

export type AuthorsMap = {[authorKey: string]: Author};

type AuthorInput = AuthorAttributes & {
page: boolean | AuthorPage;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-blog/src/blogUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ import {getTagsFile} from '@docusaurus/utils-validation';
import {validateBlogPostFrontMatter} from './frontMatter';
import {getBlogPostAuthors} from './authors';
import {reportAuthorsProblems} from './authorsProblems';
import type {AuthorsMap} from './authorsMap';
import type {TagsFile} from '@docusaurus/utils';
import type {LoadContext, ParseFrontMatter} from '@docusaurus/types';
import type {
AuthorsMap,
PluginOptions,
ReadingTimeFunction,
BlogPost,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,15 +517,15 @@ declare module '@docusaurus/plugin-content-blog' {
items: BlogSidebarItem[];
};

import type {AuthorsMap} from './authorsMap';
export type AuthorsMap = {[authorKey: string]: Author};

export type BlogContent = {
blogSidebarTitle: string;
blogPosts: BlogPost[];
blogListPaginated: BlogPaginated[];
blogTags: BlogTags;
blogTagsListPath: string;
authorsMap: AuthorsMap;
authorsMap?: AuthorsMap;
};

export type BlogMetadata = {
Expand Down

0 comments on commit aec2154

Please sign in to comment.