Unverified Commit 33586b60 authored by Quentin's avatar Quentin Committed by GitHub

Adding missing fields to the `Manifest` type (#48552)

### What?
Some fields were missing from the `Manifest` type.
Types were written according to
[MDN](https://developer.mozilla.org/en-US/docs/Web/Manifest) and
[W3C](https://www.w3.org/TR/appmanifest/#) documentation.

### Why?
To improve developer experience with the new [File-Based Metadata
API](https://nextjs.org/blog/next-13-3#file-based-metadata-api) for
Manifest.
parent 9c0a8ce7
...@@ -2,8 +2,21 @@ export type Manifest = { ...@@ -2,8 +2,21 @@ export type Manifest = {
background_color?: string background_color?: string
categories?: string[] categories?: string[]
description?: string description?: string
dir?: 'ltr' | 'rtl' | 'auto'
display?: 'fullscreen' | 'standalone' | 'minimal-ui' | 'browser' display?: 'fullscreen' | 'standalone' | 'minimal-ui' | 'browser'
display_override?: string[] display_override?: (
| 'fullscreen'
| 'standalone'
| 'minimal-ui'
| 'browser'
| 'window-controls-overlay'
)[]
file_handlers?: {
action: string
accept: {
[mimeType: string]: string[]
}[]
}[]
icons?: { icons?: {
src: string src: string
type?: string type?: string
...@@ -11,6 +24,7 @@ export type Manifest = { ...@@ -11,6 +24,7 @@ export type Manifest = {
purpose?: 'any' | 'maskable' | 'monochrome' | 'badge' purpose?: 'any' | 'maskable' | 'monochrome' | 'badge'
}[] }[]
id?: string id?: string
lang?: string
launch_handler?: { launch_handler?: {
platform?: 'windows' | 'macos' | 'linux' platform?: 'windows' | 'macos' | 'linux'
url?: string url?: string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment