mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
refactor: declare all props as interfaces (#6730)
* refactor: declare all props as interfaces * fix * fix...
This commit is contained in:
parent
5555290edc
commit
c38200ba5b
11 changed files with 44 additions and 55 deletions
|
@ -66,8 +66,8 @@ declare module '@theme/IdealImage' {
|
|||
images: SrcType[];
|
||||
};
|
||||
|
||||
export type Props = ComponentProps<'img'> & {
|
||||
img: {default: string} | {src: SrcImage; preSrc: string} | string;
|
||||
};
|
||||
export interface Props extends ComponentProps<'img'> {
|
||||
readonly img: {default: string} | {src: SrcImage; preSrc: string} | string;
|
||||
}
|
||||
export default function IdealImage(props: Props): JSX.Element;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue