diff --git a/frontend/src/utils/getDocumentHead.ts b/frontend/src/utils/getDocumentHead.ts index 36b9b9a..915bd5b 100644 --- a/frontend/src/utils/getDocumentHead.ts +++ b/frontend/src/utils/getDocumentHead.ts @@ -10,6 +10,8 @@ type DocumentHeadData = { } } +type NoReadonly = { -readonly [P in keyof T]: NoReadonly } + /** * Generates a head to provide to QwikCity * @@ -18,7 +20,7 @@ type DocumentHeadData = { * @returns the QwikCity head ready to use */ export function getDocumentHead(data: DocumentHeadData, head?: DocumentHeadValue) { - const result: DocumentHeadValue = { meta: [] } + const result: NoReadonly = { meta: [] } const setMeta = (name: string, content: string) => { if (head?.meta?.some((meta) => meta.name === name)) {