forked from wojtekmaj/react-clock
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
33 lines (31 loc) · 1.02 KB
/
Copy pathindex.d.ts
File metadata and controls
33 lines (31 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
declare module "react-clock" {
type HandLength = number; // 0 - 100
type OppositeHandLength = number; // -100 - 100
type HandWidth = number; // >= 0
type MarkLength = HandLength;
type MarkWidth = HandWidth;
export default function Clock(props: ClockProps): JSX.Element;
export interface ClockProps {
className?: string | string[];
hourHandLength?: HandLength;
hourHandOppositeLength?: OppositeHandLength;
hourHandWidth?: HandWidth;
hourMarksLength?: MarkLength;
hourMarksWidth?: MarkWidth;
minuteHandLength?: HandLength;
minuteHandOppositeLength?: OppositeHandLength;
minuteHandWidth?: HandWidth;
minuteMarksLength?: MarkLength;
minuteMarksWidth?: MarkWidth;
renderHourMarks?: boolean;
renderMinuteHand?: boolean;
renderMinuteMarks?: boolean;
renderNumbers?: boolean;
renderSecondHand?: boolean;
secondHandLength?: HandLength;
secondHandOppositeLength?: OppositeHandLength;
secondHandWidth?: HandWidth;
size?: number;
value?: Date | string;
}
}