UNPKG

next

Version:

The React Framework

75 lines (74 loc) 2.7 kB
type ClientModeEnum = 'auto' | 'focus-existing' | 'navigate-existing' | 'navigate-new'; type File = { name: string; accept: string | string[]; }; type Icon = { src: string; type?: string | undefined; sizes?: string | undefined; purpose?: 'any' | 'maskable' | 'monochrome' | undefined; }; export type Manifest = { background_color?: string | undefined; categories?: string[] | undefined; description?: string | undefined; dir?: 'ltr' | 'rtl' | 'auto' | undefined; display?: 'fullscreen' | 'standalone' | 'minimal-ui' | 'browser' | undefined; display_override?: ('fullscreen' | 'standalone' | 'minimal-ui' | 'browser' | 'window-controls-overlay')[] | undefined; file_handlers?: { action: string; accept: { [mimeType: string]: string[]; }; }[] | undefined; icons?: Icon[] | undefined; id?: string | undefined; lang?: string | undefined; launch_handler?: { client_mode: ClientModeEnum | ClientModeEnum[]; } | undefined; name?: string | undefined; orientation?: 'any' | 'natural' | 'landscape' | 'portrait' | 'portrait-primary' | 'portrait-secondary' | 'landscape-primary' | 'landscape-secondary' | undefined; prefer_related_applications?: boolean | undefined; protocol_handlers?: { protocol: string; url: string; }[] | undefined; related_applications?: { platform: string; url: string; id?: string | undefined; }[] | undefined; scope?: string | undefined; screenshots?: { form_factor?: 'narrow' | 'wide' | undefined; label?: string | undefined; platform?: 'android' | 'chromeos' | 'ipados' | 'ios' | 'kaios' | 'macos' | 'windows' | 'xbox' | 'chrome_web_store' | 'itunes' | 'microsoft-inbox' | 'microsoft-store' | 'play' | undefined; src: string; type?: string | undefined; sizes?: string | undefined; }[] | undefined; share_target?: { action: string; method?: 'get' | 'post' | 'GET' | 'POST' | undefined; enctype?: 'application/x-www-form-urlencoded' | 'multipart/form-data' | undefined; params: { title?: string | undefined; text?: string | undefined; url?: string | undefined; files?: File | File[] | undefined; }; } | undefined; short_name?: string | undefined; shortcuts?: { name: string; short_name?: string | undefined; description?: string | undefined; url: string; icons?: Icon[] | undefined; }[] | undefined; start_url?: string | undefined; theme_color?: string | undefined; }; export {};