UNPKG

webpack-pwa-manifest

Version:
48 lines (44 loc) 1.59 kB
// 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'; 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; prefer_related_applications?: boolean; related_applications?: RelatedApplications[]; scope?: string; short_name?: string; start_url?: string; theme_color?: string; useWebpackPublicPath?: boolean; } interface RelatedApplications { platform?: string; url: string; id?: string; } interface Icon { src: string; size?: string | number; sizes?: number[]; destination?: string; } }