feat(reactivity-transform/types): restructure macro types + export types for all shorthand methods

This commit is contained in:
Evan You
2021-12-11 18:15:44 +08:00
parent 198ca14f19
commit db729ce99e
7 changed files with 151 additions and 109 deletions

View File

@@ -14,7 +14,8 @@ export {
UnwrapRef,
ShallowRef,
ShallowUnwrapRef,
RefUnwrapBailTypes
RefUnwrapBailTypes,
CustomRefFactory
} from './ref'
export {
reactive,

View File

@@ -151,7 +151,7 @@ export function proxyRefs<T extends object>(
: new Proxy(objectWithRefs, shallowUnwrapHandlers)
}
type CustomRefFactory<T> = (
export type CustomRefFactory<T> = (
track: () => void,
trigger: () => void
) => {