From fb08ebc051615c424ee1334a66ba32467612eb2b Mon Sep 17 00:00:00 2001 From: ayoayco Date: Sat, 17 Aug 2024 20:52:08 +0200 Subject: [PATCH] fix: injectedType for `__assets` --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 242ad44..bc127b9 100644 --- a/index.js +++ b/index.js @@ -94,7 +94,7 @@ export default function serviceWorker(options) { }, 'astro:config:done': async ({injectTypes, logger}) => { let injectedTypes = ` -declare const __assets: string; +declare const __assets: string[]; declare const __version: string; declare const __prefix: string;` injectTypes({filename: 'caching.d.ts', content: injectedTypes})