-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
47 lines (38 loc) · 875 Bytes
/
types.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
import { NavigationScreenProp } from "react-navigation";
import { ColorScheme } from "./contexts/MyThemeContext";
import { ReactNode } from "react";
export interface NavigationProps {
navigation: NavigationScreenProp<any, any>;
}
export interface HocProps {
children: ReactNode;
}
export interface Feeding {
dateStart: string;
timeStart: string;
type: string;
side?: string;
timeEnd?: string;
duration?: string;
both?: boolean;
milkType?: MilkType;
mililitres?: string;
scoops?: string;
products?: string[];
}
export interface FeedingItem {
item: Feeding;
index: number;
}
export type MilkType = "FORMULA_MILK" | "BREAST_MILK";
export interface Theme {
theme: ColorScheme;
}
export type Partial<T> = {
[P in keyof T]?: T[P];
};
type SvgCall = (color: string) => string;
export interface FoodIcon {
svg: SvgCall;
type: string;
}