Skip to content

Commit a3650ee

Browse files
authored
Merge pull request #181 from jadengore/fix-onChange-typing
Update onChange typing to include default type
2 parents e78a62e + 12573a1 commit a3650ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ declare module "rc-time-picker" {
2626
disabledSeconds?: (hour: number, minute: number) => number[];
2727
use12Hours?: boolean;
2828
hideDisabledOptions?: boolean;
29-
onChange?: (newValue: Moment) => void;
29+
onChange?: (newValue: Moment | null) => void;
3030
onAmPmChange?: (ampm: 'PM' | 'AM') => void;
3131
addon?: (instance: typeof Panel) => React.ReactNode;
3232
placement?: string;

0 commit comments

Comments
 (0)