Skip to content

Commit

Permalink
fix: address TS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Nov 9, 2020
1 parent de07279 commit e87d610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

1 comment on commit e87d610

@vercel
Copy link

@vercel vercel bot commented on e87d610 Nov 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.