Skip to content
Permalink
Browse files
fix(types/reactivity-transform): fix type when initial value is not u…
…sed (#6821)

fix #6820
  • Loading branch information
sxzz committed Nov 8, 2022
1 parent b3916db commit fdc5902cce0d077c722dfd422850ca69fd51be8e
Showing 1 changed file with 4 additions and 2 deletions.
@@ -83,9 +83,11 @@ type ToRawRefs<T extends object> = {
: T[K]
}

export declare function $ref<T>(arg?: T | Ref<T>): RefValue<UnwrapRef<T>>
export declare function $ref<T>(): RefValue<T | undefined>
export declare function $ref<T>(arg: T | Ref<T>): RefValue<UnwrapRef<T>>

export declare function $shallowRef<T>(arg?: T): RefValue<T>
export declare function $shallowRef<T>(): RefValue<T | undefined>
export declare function $shallowRef<T>(arg: T): RefValue<T>

export declare function $toRef<T extends object, K extends keyof T>(
object: T,

0 comments on commit fdc5902

Please sign in to comment.