mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Replaced any[] with more specific requirements
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ export default class ReactImageFallback extends React.Component<
|
||||
|
||||
export interface ReactImageFallbackProps {
|
||||
src: string;
|
||||
fallbackImage: string | React.ReactElement<any> | any[];
|
||||
fallbackImage: string | React.ReactElement<any> | string[] | React.ReactElement<any>[];
|
||||
initialImage?: string | React.ReactElement<any>;
|
||||
onLoad?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
|
||||
onError?: (event: React.SyntheticEvent<HTMLImageElement>) => void;
|
||||
|
||||
Reference in New Issue
Block a user