UNPKG

2.33 kBTypeScriptView Raw
1import { ResizeMode } from '@expo/image-utils';
2export interface IOSManifestLink {
3 media: string;
4 href: string;
5 size?: string;
6 valid?: 'startup' | 'icon';
7}
8export interface HTMLManifestLink {
9 rel: string;
10 href: string;
11 crossorigin?: string;
12}
13export interface ManifestProps {
14 noResources: boolean;
15 filename: string;
16 publicPath: string;
17 HtmlWebpackPlugin: any;
18 projectRoot: string;
19}
20export declare type Tags = {
21 [key: string]: Tag[] | Tag;
22};
23export interface Tag {
24 name?: string;
25 content?: string;
26 rel?: 'apple-touch-startup-image' | 'apple-touch-icon' | string;
27 href?: string;
28 media?: string;
29 crossorigin?: string;
30 sizes?: string;
31}
32export declare type Direction = 'ltr' | 'rtl' | 'auto';
33export declare type Display = 'fullscreen' | 'standalone' | 'minimal-ui' | 'browser';
34export declare type Orientation = 'any' | 'natural' | 'landscape' | 'landscape-primary' | 'landscape-secondary' | 'portrait' | 'portrait-primary' | 'portrait-secondary' | 'omit';
35export declare type CrossOrigin = 'use-credentials' | 'anonymous';
36export interface RelatedApplications {
37 platform?: string;
38 url: string;
39 id?: string;
40}
41export interface ManifestIcon {
42 src: string;
43 sizes: string;
44 type: string;
45}
46export interface Icon {
47 src: string;
48 resizeMode: ResizeMode;
49 size?: string | number;
50 sizes?: number[];
51 type?: string;
52 destination?: string;
53 media?: string;
54 color?: string;
55 ios?: IOSManifestLink;
56}
57export declare type StartupImage = {
58 ios: 'startup';
59 src: string;
60 sizes: number[][];
61 scale: number;
62 media: string;
63 destination: string | undefined;
64 resizeMode: ResizeMode;
65 color: string | undefined;
66};
67export interface ManifestOptions {
68 background_color?: string;
69 description?: string;
70 dir?: Direction;
71 display?: Display;
72 fingerprints?: boolean;
73 filename?: string;
74 icons?: Icon | Icon[];
75 inject?: boolean;
76 lang?: string;
77 name: string;
78 orientation?: Orientation;
79 publicPath?: string;
80 prefer_related_applications?: boolean;
81 related_applications?: RelatedApplications[];
82 scope?: string;
83 short_name?: string;
84 start_url?: string;
85 theme_color?: string;
86 crossorigin?: CrossOrigin;
87 startupImages?: any;
88}