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
Show 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
=
{
export
type
Manifest
=
{
background_color
?:
string
background_color
?:
string
categories
?:
string
[]
categories
?:
string
[]
...
@@ -15,19 +33,13 @@ export type Manifest = {
...
@@ -15,19 +33,13 @@ export type Manifest = {
action
:
string
action
:
string
accept
:
{
accept
:
{
[
mimeType
:
string
]:
string
[]
[
mimeType
:
string
]:
string
[]
}
}[]
}[]
}[]
icons
?:
Icon
[]
icons
?:
{
src
:
string
type
?:
string
sizes
?:
string
purpose
?:
'any'
|
'maskable'
|
'monochrome'
|
'badge'
}[]
id
?:
string
id
?:
string
lang
?:
string
lang
?:
string
launch_handler
?:
{
launch_handler
?:
{
platform
?:
'windows'
|
'macos'
|
'linux'
client_mode
:
ClientModeEnum
|
ClientModeEnum
[]
url
?:
string
}
}
name
?:
string
name
?:
string
orientation
?:
orientation
?:
...
@@ -43,7 +55,6 @@ export type Manifest = {
...
@@ -43,7 +55,6 @@ export type Manifest = {
protocol_handlers
?:
{
protocol_handlers
?:
{
protocol
:
string
protocol
:
string
url
:
string
url
:
string
title
?:
string
}[]
}[]
related_applications
?:
{
related_applications
?:
{
platform
:
string
platform
:
string
...
@@ -52,35 +63,36 @@ export type Manifest = {
...
@@ -52,35 +63,36 @@ export type Manifest = {
}[]
}[]
scope
?:
string
scope
?:
string
screenshots
?:
{
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
src
:
string
type
?:
string
type
?:
string
sizes
?:
string
sizes
?:
string
}[]
}[]
serviceworker
?:
{
src
?:
string
scope
?:
string
type
?:
string
update_via_cache
?:
'import'
|
'none'
|
'all'
}
share_target
?:
{
share_target
?:
{
action
?:
string
action
:
string
method
?:
'get'
|
'post'
method
?:
'get'
|
'post'
|
'GET'
|
'POST'
enctype
?:
enctype
?:
'application/x-www-form-urlencoded'
|
'multipart/form-data'
|
'application/x-www-form-urlencoded'
params
:
{
|
'multipart/form-data'
|
'text/plain'
params
?:
{
name
:
string
value
:
string
required
?:
boolean
}[]
url
?:
string
title
?:
string
title
?:
string
text
?:
string
text
?:
string
files
?:
{
url
?:
string
accept
?:
string
[]
files
?:
File
|
File
[]
name
?:
string
}
}[]
}
}
short_name
?:
string
short_name
?:
string
shortcuts
?:
{
shortcuts
?:
{
...
@@ -88,12 +100,7 @@ export type Manifest = {
...
@@ -88,12 +100,7 @@ export type Manifest = {
short_name
?:
string
short_name
?:
string
description
?:
string
description
?:
string
url
:
string
url
:
string
icons
?:
{
icons
?:
Icon
[]
src
:
string
type
?:
string
sizes
?:
string
purpose
?:
'any'
|
'maskable'
|
'monochrome'
|
'badge'
}[]
}[]
}[]
start_url
?:
string
start_url
?:
string
theme_color
?:
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