Skip to content

Commit

Permalink
feat: add share_target to manifest (#459)
Browse files Browse the repository at this point in the history
* feat: add share_target to manifest

* chore: add share target files type
  • Loading branch information
userquin committed Feb 7, 2023
1 parent 3d6f489 commit d142c09
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ export interface ResolvedVitePWAOptions extends Required<VitePWAOptions> {
vitePlugins: InjectManifestVitePlugins
}

export interface ShareTargetFiles {
name: string
accept: string
}

export interface ManifestOptions {
/**
* @default _npm_package_name_
Expand Down Expand Up @@ -278,6 +283,17 @@ export interface ManifestOptions {
* @default ''
*/
iarc_rating_id: string
share_target: {
action: string
method?: string
enctype?: string
params: {
title?: string
text?: string
url?: string
files?: ShareTargetFiles | ShareTargetFiles[]
}
}
}

export interface WebManifestData {
Expand Down

0 comments on commit d142c09

Please sign in to comment.