Skip to content

Commit 6890852

Browse files
authored
chore(types): export UnwrapNestedRefs type (#779)
Co-authored-by: webfansplz <>
1 parent 3421a79 commit 6890852

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/reactivity/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ export type {
2929
UnwrapRefSimple,
3030
ShallowUnwrapRef,
3131
} from './ref'
32-
export type { DeepReadonly } from './readonly'
32+
export type { DeepReadonly, UnwrapNestedRefs } from './readonly'

src/reactivity/readonly.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export type DeepReadonly<T> = T extends Builtin
3333
: Readonly<T>
3434

3535
// only unwrap nested ref
36-
type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>
36+
export type UnwrapNestedRefs<T> = T extends Ref ? T : UnwrapRefSimple<T>
3737

3838
/**
3939
* **In @vue/composition-api, `reactive` only provides type-level readonly check**

0 commit comments

Comments
 (0)