Skip to content

Commit

Permalink
fix: AvatarProps declaration (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Jan 21, 2021
1 parent bb1266a commit 6324875
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion packages/fuselage/fuselage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,25 @@ declare module '@rocket.chat/fuselage' {
};
export const ActionButton: ForwardRefExoticComponent<ActionButtonProps>;

type AvatarProps = BoxProps;
type AvatarProps = Omit<BoxProps, 'title' | 'size'> & {
title?: string;
size?:
| 'x16'
| 'x18'
| 'x20'
| 'x24'
| 'x28'
| 'x32'
| 'x36'
| 'x40'
| 'x48'
| 'x124'
| 'x200'
| 'x332';
rounded?: boolean;
objectFit?: boolean;
url: string;
};
export const Avatar: ForwardRefExoticComponent<AvatarProps> & {
Context: Context<{
baseUrl: string;
Expand Down

0 comments on commit 6324875

Please sign in to comment.