From e87d6108722df76446bc6eb041c00a0592ac4c18 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 9 Nov 2020 10:02:48 +0000 Subject: [PATCH] fix: address TS bug https://github.com/microsoft/TypeScript/issues/28010 --- src/meta.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/meta.ts b/src/meta.ts index 03bc4cb9..50c2b517 100644 --- a/src/meta.ts +++ b/src/meta.ts @@ -69,8 +69,9 @@ export const getHeadOptions = (options: { head: () => MetaInfo }) => { const computedHead = this._computedHead.map(h => { if (isReactive(h)) return toRaw(h) if (isRef(h)) return h.value + return h }) - return defu(...computedHead.reverse(), optionHead) + return defu({} as MetaInfo, ...computedHead.reverse(), optionHead) } return { head }