Skip to content

Commit

Permalink
fix(useFavicon)!: rename type FaviconOptions to UseFaviconOptions (
Browse files Browse the repository at this point in the history
  • Loading branch information
okxiaoliang4 committed Jul 12, 2022
1 parent 1b87160 commit 99e073f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/useFavicon/index.ts
Expand Up @@ -4,7 +4,7 @@ import { watch } from 'vue-demi'
import type { ConfigurableDocument } from '../_configurable'
import { defaultDocument } from '../_configurable'

export interface FaviconOptions extends ConfigurableDocument {
export interface UseFaviconOptions extends ConfigurableDocument {
baseUrl?: string
rel?: string
}
Expand All @@ -18,7 +18,7 @@ export interface FaviconOptions extends ConfigurableDocument {
*/
export function useFavicon(
newIcon: MaybeComputedRef<string | null | undefined> = null,
options: FaviconOptions = {},
options: UseFaviconOptions = {},
) {
const {
baseUrl = '',
Expand All @@ -45,3 +45,5 @@ export function useFavicon(

return favicon
}

export type UseFaviconReturn = ReturnType<typeof useFavicon>

0 comments on commit 99e073f

Please sign in to comment.