Skip to content

Commit

Permalink
refactor: use MaybeRef
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Mar 5, 2021
1 parent 495f3f4 commit 5e3374b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export const createHead = () => {

const IS_BROWSER = typeof window !== 'undefined'

export const useHead = (obj: HeadObject | Ref<HeadObject>) => {
export const useHead = (obj: MaybeRef<HeadObject>) => {
const headObj = ref(obj) as Ref<HeadObjectPlain>
const head = injectHead()

Expand Down

0 comments on commit 5e3374b

Please sign in to comment.