Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
17bdfd8e
Unverified
Commit
17bdfd8e
authored
Sep 23, 2024
by
coderfin
Committed by
GitHub
Sep 23, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Type Definition] - Updates the manifest types to reflect the current specifications (#68273)
Co-authored-by:
Jiachi Liu
<
inbox@huozhi.im
>
parent
64fdbcb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
40 deletions
+47
-40
manifest-types.ts
packages/next/src/lib/metadata/types/manifest-types.ts
+47
-40
No files found.
packages/next/src/lib/metadata/types/manifest-types.ts
View file @
17bdfd8e
type
ClientModeEnum
=
|
'auto'
|
'focus-existing'
|
'navigate-existing'
|
'navigate-new'
type
File
=
{
name
:
string
accept
:
string
|
string
[]
}
type
Icon
=
{
src
:
string
type
?:
string
sizes
?:
string
purpose
?:
'any'
|
'maskable'
|
'monochrome'
}
export
type
Manifest
=
{
background_color
?:
string
categories
?:
string
[]
...
...
@@ -15,19 +33,13 @@ export type Manifest = {
action
:
string
accept
:
{
[
mimeType
:
string
]:
string
[]
}[]
}[]
icons
?:
{
src
:
string
type
?:
string
sizes
?:
string
purpose
?:
'any'
|
'maskable'
|
'monochrome'
|
'badge'
}
}[]
icons
?:
Icon
[]
id
?:
string
lang
?:
string
launch_handler
?:
{
platform
?:
'windows'
|
'macos'
|
'linux'
url
?:
string
client_mode
:
ClientModeEnum
|
ClientModeEnum
[]
}
name
?:
string
orientation
?:
...
...
@@ -43,7 +55,6 @@ export type Manifest = {
protocol_handlers
?:
{
protocol
:
string
url
:
string
title
?:
string
}[]
related_applications
?:
{
platform
:
string
...
...
@@ -52,35 +63,36 @@ export type Manifest = {
}[]
scope
?:
string
screenshots
?:
{
form_factor
?:
'narrow'
|
'wide'
label
?:
string
platform
?:
|
'android'
|
'chromeos'
|
'ipados'
|
'ios'
|
'kaios'
|
'macos'
|
'windows'
|
'xbox'
|
'chrome_web_store'
|
'itunes'
|
'microsoft-inbox'
|
'microsoft-store'
|
'play'
src
:
string
type
?:
string
sizes
?:
string
}[]
serviceworker
?:
{
src
?:
string
scope
?:
string
type
?:
string
update_via_cache
?:
'import'
|
'none'
|
'all'
}
share_target
?:
{
action
?:
string
method
?:
'get'
|
'post'
enctype
?:
|
'application/x-www-form-urlencoded'
|
'multipart/form-data'
|
'text/plain'
params
?:
{
name
:
string
value
:
string
required
?:
boolean
}[]
url
?:
string
title
?:
string
text
?:
string
files
?:
{
accept
?:
string
[]
name
?:
string
}[]
action
:
string
method
?:
'get'
|
'post'
|
'GET'
|
'POST'
enctype
?:
'application/x-www-form-urlencoded'
|
'multipart/form-data'
params
:
{
title
?:
string
text
?:
string
url
?:
string
files
?:
File
|
File
[]
}
}
short_name
?:
string
shortcuts
?:
{
...
...
@@ -88,12 +100,7 @@ export type Manifest = {
short_name
?:
string
description
?:
string
url
:
string
icons
?:
{
src
:
string
type
?:
string
sizes
?:
string
purpose
?:
'any'
|
'maskable'
|
'monochrome'
|
'badge'
}[]
icons
?:
Icon
[]
}[]
start_url
?:
string
theme_color
?:
string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment