Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Apr 6, 2022
1 parent c6c5355 commit 2115e2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,7 @@ declare module '@docusaurus/plugin-content-docs' {
DocMetadata,
'id' | 'title' | 'description' | 'permalink'
>;
export type PropTagDocList = {
tag: TagModule & {items: PropTagDocListDoc[]};
};
export type PropTagDocList = TagModule & {items: PropTagDocListDoc[]};

export type PropTagsListPage = {
tags: TagsListItem[];
Expand Down Expand Up @@ -551,7 +549,9 @@ declare module '@theme/DocTagsListPage' {
declare module '@theme/DocTagDocListPage' {
import type {PropTagDocList} from '@docusaurus/plugin-content-docs';

export interface Props extends PropTagDocList {}
export interface Props {
tag: PropTagDocList;
}
export default function DocTagDocListPage(props: Props): JSX.Element;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-plugin-content-docs/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export function toTagDocListProp({
allTagsPath: string;
tag: VersionTag;
docs: DocMetadata[];
}): PropTagDocList['tag'] {
}): PropTagDocList {
function toDocListProp(): PropTagDocListDoc[] {
const list = _.compact(
tag.docIds.map((id) => docs.find((doc) => doc.id === id)),
Expand Down

0 comments on commit 2115e2a

Please sign in to comment.