amis-rpc-design/node_modules/rc-picker/lib/hooks/useTimeSelection.d.ts
2023-10-07 19:42:30 +08:00

12 lines
611 B
TypeScript

import type { GenerateConfig } from '../generate';
import type { Unit } from '../panels/TimePanel/TimeUnitColumn';
export default function useTimeSelection<DateType>({ value, generateConfig, disabledMinutes, disabledSeconds, minutes, seconds, use12Hours, }: {
value: DateType;
generateConfig: GenerateConfig<DateType>;
disabledMinutes: (hour: number) => number[];
disabledSeconds: (hour: number, minute: number) => number[];
minutes: Unit[];
seconds: Unit[];
use12Hours: boolean;
}): (isNewPM: boolean | undefined, newHour: number, newMinute: number, newSecond: number) => DateType;