Make count prop optional in BadgeProps interface

E.g. https://ant.design/components/badge/#components-badge-demo-dot
This commit is contained in:
Jordan Hornblow 2017-05-29 20:14:16 +10:00 committed by GitHub
parent fa235b7876
commit 03adcefafd

View File

@ -7,7 +7,7 @@ import warning from '../_util/warning';
export interface BadgeProps {
/** Number to show in badge */
count: number | string;
count?: number | string;
showZero?: boolean;
/** Max count to show */
overflowCount?: number;