@ionic/cli-plugin-cordova
Version:
Ionic Cordova Plugin for Ionic CLI
51 lines (50 loc) • 1.19 kB
TypeScript
export interface ImageResource {
platform: string;
imageId: string | null;
dest: string;
resType: string;
nodeName: string;
nodeAttributes: string[];
name: string;
width: number;
height: number;
density?: string;
orientation?: 'landscape' | 'portrait';
}
export interface ResourcesImageConfig {
name: string;
width: number;
height: number;
density?: string;
orientation?: 'landscape' | 'portrait';
}
export interface SourceImage {
ext: string;
imageId?: string;
cachedId?: string;
platform: string;
resType: string;
path: string;
vector: boolean;
width: number;
height: number;
}
export interface ImageUploadResponse {
Error: string;
Width: number;
Height: number;
Type: string;
Vector: boolean;
}
export interface ResourcesPlatform {
[imgType: string]: {
images: ResourcesImageConfig[];
nodeName: string;
nodeAttributes: string[];
};
}
export interface ResourcesConfig {
[propName: string]: ResourcesPlatform;
}
export declare type KnownPlatform = 'ios' | 'android' | 'wp8';
export declare type KnownResourceType = 'icon' | 'splash';