-
Notifications
You must be signed in to change notification settings - Fork 38
/
types.d.ts
93 lines (83 loc) · 1.68 KB
/
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { ParamListBase } from '@react-navigation/routers';
import * as MediaLibrary from 'expo-media-library';
export type ThemeColors = {
dark: boolean;
colors: {
primary: string;
secondary: string;
background: string;
card: string;
text: string;
border: string;
notification: string;
};
};
export type fileItem = {
name: string;
selected?: boolean;
exists: true;
uri: string;
size: number;
isDirectory: boolean;
modificationTime: number;
md5?: string;
};
export type ExtendedAsset = {
id: string;
filename: string;
uri: string;
mediaType: MediaLibrary.MediaTypeValue;
mediaSubtypes?: string[] | undefined;
width: number;
height: number;
creationTime: number;
modificationTime: number;
duration: number;
albumId?: string | undefined;
name?: string;
selected?: boolean;
};
export type customAlbum = {
id?: string;
title?: string;
assetCount?: number;
type?: string | undefined;
coverImage?: string;
};
export interface imageFile {
id: string;
albumId: string;
filename: string;
uri: string;
duration: number;
width: number;
height: number;
mediaType: string;
selected: boolean;
creationTime: number;
modificationTime: number;
}
export type imageDimensions = {
width: number;
height: number;
};
export type fileRequestMessage = {
device: string;
path: string;
basedir: string;
};
export type newFolderRequest = {
device: string;
name: string;
path: string;
};
export type newFileTransfer = {
name: string;
file: string;
size: number;
device: string;
path: string;
};
export type SubNavigator<T extends ParamListBase> = {
[K in keyof T]: { screen: K; params?: T[K] };
}[keyof T];