mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-24 20:17:50 +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;
|
color: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
type TagType =
|
||||||
|
| 'favorite'
|
||||||
|
| 'opensource'
|
||||||
|
| 'product'
|
||||||
|
| 'design'
|
||||||
|
| 'i18n'
|
||||||
|
| 'versioning'
|
||||||
|
| 'large'
|
||||||
|
| 'meta'
|
||||||
|
| 'personal'
|
||||||
|
| 'rtl';
|
||||||
|
|
||||||
export type TagsOption = {
|
export type TagsOption = {
|
||||||
[tagName: string]: Tag;
|
[tagName: string]: Tag;
|
||||||
};
|
};
|
||||||
|
|
|
@ -250,7 +250,7 @@ declare module '@theme/BlogPostItems' {
|
||||||
declare module '@theme/ShowcaseDetails' {
|
declare module '@theme/ShowcaseDetails' {
|
||||||
import type {ShowcaseItem} from '@docusaurus/plugin-content-showcase';
|
import type {ShowcaseItem} from '@docusaurus/plugin-content-showcase';
|
||||||
|
|
||||||
export type User = ShowcaseItem['website'][number];
|
export type User = ShowcaseItem;
|
||||||
|
|
||||||
export type Props = {
|
export type Props = {
|
||||||
content: User;
|
content: User;
|
||||||
|
@ -262,7 +262,7 @@ declare module '@theme/ShowcaseDetails' {
|
||||||
declare module '@theme/Showcase' {
|
declare module '@theme/Showcase' {
|
||||||
import type {ShowcaseItem} from '@docusaurus/plugin-content-showcase';
|
import type {ShowcaseItem} from '@docusaurus/plugin-content-showcase';
|
||||||
|
|
||||||
export type User = ShowcaseItem['website'][number];
|
export type User = ShowcaseItem;
|
||||||
|
|
||||||
export type Props = {
|
export type Props = {
|
||||||
content: User[];
|
content: User[];
|
||||||
|
@ -278,7 +278,7 @@ declare module '@theme/Showcase/ShowcaseCard' {
|
||||||
preview: string | null; // null = use our serverless screenshot service
|
preview: string | null; // null = use our serverless screenshot service
|
||||||
website: string;
|
website: string;
|
||||||
source: string | null;
|
source: string | null;
|
||||||
tags: TagType[];
|
tags: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue