mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-03 19:32:35 +02:00
refactor: ensure all types are using index signature instead of Record (#6995)
* refactor: ensure all types are using index signature instead of Record * kick CI
This commit is contained in:
parent
e8800b9d49
commit
87592bca03
99 changed files with 339 additions and 307 deletions
|
@ -68,7 +68,7 @@ declare module '@endiliey/react-ideal-image' {
|
|||
* from material design, Implemented as React components with the SVG
|
||||
* element. You can customize icons
|
||||
*/
|
||||
icons?: Partial<Record<IconKey, ComponentType>>;
|
||||
icons?: Partial<{[icon in IconKey]: ComponentType}>;
|
||||
/**
|
||||
* This prop takes one of the 2 options, xhr and image.
|
||||
* Read more about it:
|
||||
|
@ -102,7 +102,7 @@ declare module '@endiliey/react-ideal-image' {
|
|||
* inline styles, but it is also possible to use CSS modules and override
|
||||
* all styles.
|
||||
*/
|
||||
theme?: Partial<Record<ThemeKey, string | CSSProperties>>;
|
||||
theme?: Partial<{[key in ThemeKey]: string | CSSProperties}>;
|
||||
/**
|
||||
* Tells how much to wait in milliseconds until consider the download to be
|
||||
* slow.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue