]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(runtime-vapor): export types from reactivity
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Fri, 15 Nov 2024 19:51:08 +0000 (03:51 +0800)
committer三咲智子 Kevin Deng <sxzz@sxzz.moe>
Fri, 15 Nov 2024 19:51:08 +0000 (03:51 +0800)
packages/runtime-vapor/src/index.ts

index d9afed312abc1fe95708ae83a7c1f6e0eaa901b5..cd1f87ae92fc1e185ec5e35dec6cd56060170df7 100644 (file)
@@ -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'