We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14591ab commit 65e65dfCopy full SHA for 65e65df
src/PickerInput/Popup/PresetPanel.tsx
@@ -1,8 +1,9 @@
1
import * as React from 'react';
2
import type { ValueDate } from '../../interface';
3
+import type { MomentInput } from 'moment';
4
import moment from 'moment';
5
-export interface PresetPanelProps<ValueType = any, DateType extends object = any> {
6
+export interface PresetPanelProps<ValueType = any, DateType extends MomentInput = MomentInput> {
7
prefixCls: string;
8
presets: ValueDate<ValueType>[];
9
onClick: (value: ValueType) => void;
0 commit comments