-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.d.ts
69 lines (66 loc) · 1.61 KB
/
app.d.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
interface Props {
children?: React.ReactNode;
childrenElement?: React.JSX.Element;
style?: React.CSSProperties;
onChange?: React.FormEventHandler<HTMLInputElement>;
}
interface PageProps {
params: {
page: number;
};
}
interface CubeProps extends Props {
className?: string;
// position at x-axis
x?: number;
// position at y-axis
y?: number;
// position at z-axis
z?: number;
// rotateY angle
ry?: number;
// rotateX angle
rx?: number;
// front surface class name
front?: string;
// back surface class name
back?: string;
// left surface class name
left?: string;
// right surface class name
right?: string;
// top surface class name
top?: string;
// bottom surface class name
bottom?: string;
// the x-axis width of cube
sizeX?: number;
// the y-axis width of cube
sizeY?: number;
// the z-axis width of cube
sizeZ?: number;
// top surface x-axis width, default same as widthX
topX?: number;
// top surface z-axis width, default same as widthZ
topZ?: number;
// Specifies the face of the cube to hide
hide?: Surface[];
// add element to left surface
leftElement?: React.ReactNode;
// add element to right surface
rightElement?: React.ReactNode;
// add element to top surface
topElement?: React.ReactNode;
// add element to bottom surface
bottomElement?: React.ReactNode;
// add element to front surface
frontElement?: React.ReactNode;
// add element to back surface
backElement?: React.ReactNode;
}
type ProductId = Item["id"];
type CartItem = {
quantity: number;
item: Item;
};
type USDCoefMap = { [key in CurrencyKey]?: number };