Skip to content

Commit

Permalink
fix(useObjectUrl): improve parameter type (#3239)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferreira-tb committed Jul 30, 2023
1 parent 5ce6151 commit d3f7e6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/useObjectUrl/index.ts
@@ -1,14 +1,14 @@
import { readonly, ref, watch } from 'vue-demi'
import { toValue, tryOnScopeDispose } from '@vueuse/shared'
import type { MaybeRef } from '@vueuse/shared'
import type { MaybeRefOrGetter } from '@vueuse/shared'

/**
* Reactive URL representing an object.
*
* @see https://vueuse.org/useObjectUrl
* @param object
*/
export function useObjectUrl(object: MaybeRef<Blob | MediaSource | undefined>) {
export function useObjectUrl(object: MaybeRefOrGetter<Blob | MediaSource | null | undefined>) {
const url = ref<string | undefined>()

const release = () => {
Expand Down

0 comments on commit d3f7e6a

Please sign in to comment.