8000 fix(isDefined): moves most specific overload to the top (#4141) · vueuse/vueuse@fd8842b · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit fd8842b

Browse files
author
bjacobgordon-cy
authored
fix(isDefined): moves most specific overload to the top (#4141)
1 parent 661e38a commit fd8842b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/isDefined/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import type { ComputedRef, Ref } from 'vue-demi'
33
// eslint-disable-next-line no-restricted-imports
44
import { unref } from 'vue-demi'
55

6-
export function isDefined<T>(v: Ref<T>): v is Ref<Exclude<T, null | undefined>>
76
export function isDefined<T>(v: ComputedRef<T>): v is ComputedRef<Exclude<T, null | undefined>>
7+
export function isDefined<T>(v: Ref<T>): v is Ref<Exclude<T, null | undefined>>
88
export function isDefined<T>(v: T): v is Exclude<T, null | undefined>
99
export function isDefined<T>(v: Ref<T>): boolean {
1010
return unref(v) != null

0 commit comments

Comments
 (0)
0