fix: injectedType for __assets
This commit is contained in:
parent
34d3cfb951
commit
fb08ebc051
1 changed files with 1 additions and 1 deletions
2
index.js
2
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})
|
||||
|
|
Loading…
Reference in a new issue