Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding missing fields to the Manifest type #48552

Merged
merged 6 commits into from
Apr 19, 2023
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 40 additions & 2 deletions packages/next/src/lib/metadata/types/manifest-types.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,54 @@
type ManifestCategory =
huozhi marked this conversation as resolved.
Show resolved Hide resolved
| "books"
| "business"
| "education"
| "entertainment"
| "finance"
| "fitness"
| "food"
| "games"
| "government"
| "health"
| "kids"
| "lifestyle"
| "magazines"
| "medical"
| "music"
| "navigation"
| "news"
| "personalization"
| "photo"
| "politics"
| "productivity"
| "security"
| "shopping"
| "social"
| "sports"
| "travel"
| "utilities"
| "weather"

export type Manifest = {
background_color?: string
categories?: string[]
categories?: ManifestCategory[]
description?: string
dir?: 'ltr' | 'rtl' | 'auto'
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?: {
src: string
type?: string
sizes?: string
purpose?: 'any' | 'maskable' | 'monochrome' | 'badge'
}[]
id?: string
lang?: string
huozhi marked this conversation as resolved.
Show resolved Hide resolved
launch_handler?: {
platform?: 'windows' | 'macos' | 'linux'
url?: string
Expand Down