UNPKG

1.14 kBTypeScriptView Raw
1export interface ImageResource {
2 name: string;
3 width: number;
4 height: number;
5 density: string;
6 orientation: 'landscape' | 'portrait';
7 platform: string;
8 resType: string;
9 dest: string;
10 imageId: string | null;
11 nodeName: string;
12 nodeAttributes: string[];
13}
14export interface ResourcesImageConfig {
15 name: string;
16 width: number;
17 height: number;
18 density?: string;
19 orientation?: 'landscape' | 'portrait';
20}
21export interface SourceImage {
22 ext: string;
23 imageId?: string;
24 platform: string;
25 resType: string;
26 path: string;
27 vector: boolean;
28 width: number;
29 height: number;
30}
31export interface ImageUploadResponse {
32 Error: string;
33 Width: number;
34 Height: number;
35 Type: string;
36 Vector: boolean;
37}
38export interface ResourcesConfig {
39 [propName: string]: {
40 [imgType: string]: {
41 images: ResourcesImageConfig[];
42 nodeName: string;
43 nodeAttributes: string[];
44 };
45 };
46}
47export declare type KnownPlatform = 'ios' | 'android' | 'wp8';
48export declare type KnownResourceType = 'icon' | 'splash';