fix: build issue

Signed-off-by: Florian BOUILLON <f.bouillon@aptatio.com>
This commit is contained in:
Florian Bouillon 2023-07-20 17:49:32 +02:00
parent cef58aaca6
commit ae901537e7

View File

@ -1,7 +1,11 @@
import { getImage } from 'astro:assets'
export default class Manifest {
static async create(baseImage, options) {
static async create(baseImage: ImageMetadata, options: {
name: string
color?: string
images?: Array<number>
}) {
const [
i192,
i512
@ -27,7 +31,6 @@ export default class Manifest {
theme_color: options.color ?? "#fff",
background_color: options.color ?? "#fff",
display: "standalone"
}
)
})
}
}