Skip to content

Commit

Permalink
fix(types/reactivity): export ShallowRef type (#5026)
Browse files Browse the repository at this point in the history
close #5205
  • Loading branch information
sxzz committed Dec 6, 2021
1 parent 095fe26 commit 523b4b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/reactivity/src/index.ts
Expand Up @@ -12,6 +12,7 @@ export {
ToRef,
ToRefs,
UnwrapRef,
ShallowRef,
ShallowUnwrapRef,
RefUnwrapBailTypes
} from './ref'
Expand Down
2 changes: 1 addition & 1 deletion packages/reactivity/src/ref.ts
Expand Up @@ -77,7 +77,7 @@ export function ref(value?: unknown) {

declare const ShallowRefMarker: unique symbol

type ShallowRef<T = any> = Ref<T> & { [ShallowRefMarker]?: true }
export type ShallowRef<T = any> = Ref<T> & { [ShallowRefMarker]?: true }

export function shallowRef<T extends object>(
value: T
Expand Down

0 comments on commit 523b4b7

Please sign in to comment.