浏览代码

fix(runtime-vapor): export types from reactivity

三咲智子 Kevin Deng 1 年之前
父节点
当前提交
de3a611eae
共有 1 个文件被更改,包括 28 次插入3 次删除
  1. 28 3
      packages/runtime-vapor/src/index.ts

+ 28 - 3
packages/runtime-vapor/src/index.ts

@@ -3,9 +3,6 @@
 export const version: string = __VERSION__
 export {
   // core
-  type Ref,
-  type ShallowRef,
-  type DebuggerEvent,
   TrackOpTypes,
   TriggerOpTypes,
   reactive,
@@ -44,6 +41,34 @@ export {
   onWatcherCleanup,
   getCurrentWatcher,
 } from '@vue/reactivity'
+export type {
+  Ref,
+  MaybeRef,
+  MaybeRefOrGetter,
+  ToRef,
+  ToRefs,
+  UnwrapRef,
+  ShallowRef,
+  ShallowUnwrapRef,
+  CustomRefFactory,
+  ReactiveFlags,
+  DeepReadonly,
+  ShallowReactive,
+  UnwrapNestedRefs,
+  ComputedRef,
+  WritableComputedRef,
+  WritableComputedOptions,
+  ComputedGetter,
+  ComputedSetter,
+  ReactiveEffectRunner,
+  ReactiveEffectOptions,
+  EffectScheduler,
+  DebuggerOptions,
+  DebuggerEvent,
+  DebuggerEventExtraInfo,
+  Raw,
+  Reactive,
+} from '@vue/reactivity'
 
 import { NOOP } from '@vue/shared'
 import { warn as _warn } from './warning'