fix types

This commit is contained in:
ozakione 2024-04-05 16:23:43 +02:00
parent 4cecd0c5de
commit 6670b7a381
2 changed files with 15 additions and 3 deletions

View file

@ -17,6 +17,18 @@ declare module '@docusaurus/plugin-content-showcase' {
color: string;
};
type TagType =
| 'favorite'
| 'opensource'
| 'product'
| 'design'
| 'i18n'
| 'versioning'
| 'large'
| 'meta'
| 'personal'
| 'rtl';
export type TagsOption = {
[tagName: string]: Tag;
};

View file

@ -250,7 +250,7 @@ declare module '@theme/BlogPostItems' {
declare module '@theme/ShowcaseDetails' {
import type {ShowcaseItem} from '@docusaurus/plugin-content-showcase';
export type User = ShowcaseItem['website'][number];
export type User = ShowcaseItem;
export type Props = {
content: User;
@ -262,7 +262,7 @@ declare module '@theme/ShowcaseDetails' {
declare module '@theme/Showcase' {
import type {ShowcaseItem} from '@docusaurus/plugin-content-showcase';
export type User = ShowcaseItem['website'][number];
export type User = ShowcaseItem;
export type Props = {
content: User[];
@ -278,7 +278,7 @@ declare module '@theme/Showcase/ShowcaseCard' {
preview: string | null; // null = use our serverless screenshot service
website: string;
source: string | null;
tags: TagType[];
tags: string[];
};
export interface Props {