Update index.d.ts (#25675)

Avatar and Image type are diff but the styling is different and the alt attribute is required for Image type.
This commit is contained in:
Saffa Shujah
2018-05-12 00:29:30 +05:00
committed by Sheetal Nandi
parent 3e13aec055
commit 9a7ca607f5

View File

@@ -48,6 +48,14 @@ export interface AvatarProps extends BaseProps<AvatarClass> {
type AvatarClass = React.StatelessComponent<AvatarProps>
export declare const Avatar: AvatarClass;
export interface ImageProps extends BaseProps<ImageClass> {
size?: number;
src?: string;
alt?: string;
}
type ImageClass = React.StatelessComponent<ImageProps>
export declare const Image: ImageClass;
export interface BadgeProps extends BaseProps<BadgeClass> {
theme?: "primary" | "secondary" | "default" | "info" | "success" | "warning" | "error";
rounded?: boolean | "top" | "right" | "bottom" | "left";