mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 11:38:48 +02:00
fix types
This commit is contained in:
parent
4cecd0c5de
commit
6670b7a381
2 changed files with 15 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue