This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
/
index.d.ts
66 lines (62 loc) · 2.17 KB
/
index.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
// Type definitions for webpack-pwa-manifest 2.0.4
// Project: https://github.com/arthurbergmz/webpack-pwa-manifest
// Definitions by: Arthur A. Bergamaschi <https://www.github.com/arthurbergmz>
import { Plugin } from 'webpack';
export = WebpackPwaManifest
declare class WebpackPwaManifest extends Plugin {
constructor(options: WebpackPwaManifest.ManifestOptions);
}
declare namespace WebpackPwaManifest {
type Direction = 'ltr' | 'rtl' | 'auto';
type Display = 'fullscreen' | 'standalone' | 'minimal-ui' | 'browser';
type Orientation = 'any' | 'natural' | 'landscape' | 'landscape-primary' | 'landscape-secondary' | 'portrait' | 'portrait-primary' | 'portrait-secondary';
type CrossOrigin = 'use-credentials' | 'anonymous';
interface ManifestOptions {
background_color?: string;
description?: string;
dir?: Direction;
display?: Display;
fingerprints?: boolean;
filename?: string;
icons?: Icon | Icon[];
inject?: boolean;
lang?: string;
name: string;
orientation?: Orientation;
publicPath?: string;
prefer_related_applications?: boolean;
related_applications?: RelatedApplications[];
scope?: string;
short_name?: string;
start_url?: string;
theme_color?: string;
'theme-color'?: string;
ios?: boolean | IosOptions;
crossorigin?: CrossOrigin;
}
interface RelatedApplications {
platform?: string;
url: string;
id?: string;
}
interface IosOptions {
'apple-touch-icon'?: string | IosAppleTouchIcon;
'apple-touch-startup-image'?: string;
'apple-mobile-web-app-title'?: string;
'apple-mobile-web-app-capable'?: 'yes' | 'no' | boolean;
'apple-mobile-web-app-status-bar-style'?: 'default' | 'black' | 'black-translucent';
}
interface IosAppleTouchIcon {
sizes?: string | number;
href: string;
}
interface Icon {
src: string;
size?: string | number;
sizes?: number[];
destination?: string;
ios?: boolean | 'default' | 'startup';
purpose?: string;
type?: string;
}
}