Created
February 17, 2022 13:45
-
-
Save tristan-f-r/158ae88de175134680fd8097357ba738 to your computer and use it in GitHub Desktop.
Detailed TypeScript definitions designed to align with the schema.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type DisplayType = "fullscreen" | "standalone" | "minimal-ui" | "browser" | |
interface WebManifest { | |
background_color?: string; | |
categories?: string[]; | |
description?: string; | |
dir?: "ltr" | "rtl" | "auto" | |
display?: DisplayType; | |
display_override?: [DisplayType]; | |
iarc_rating_id?: string; | |
icons?: [{ | |
src: string; | |
sizes: string; | |
type?: string; | |
}], | |
lang?: string; | |
name: string; | |
orientation: "any" | "natural" | "landscape" | | |
"landscape-primary" | "landscape-secondary" | "portrait" | | |
"portrait-primary" | "portrait-secondary"; | |
prefer_related_applications: boolean; | |
protocol_handlers: [{ | |
protocol: string, | |
url: string; | |
}]; | |
related_applications: [{ | |
platform: string; | |
url: string; | |
id?: string; | |
}]; | |
scope: string; | |
screenshots: [{ | |
src: string; | |
sizes: string; | |
type: string; | |
platform: "wide" | "narrow"; | |
label: string; | |
}]; | |
shortcuts: [{ | |
name: string; | |
url: string; | |
description?: string; | |
}]; | |
short_name?: string; | |
start_url?: string; | |
theme_color?: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment