fix(runtime-vapor): export types from reactivity

This commit is contained in:
三咲智子 Kevin Deng 2024-11-16 03:51:08 +08:00
parent f6ce3f9d43
commit de3a611eae
No known key found for this signature in database
1 changed files with 28 additions and 3 deletions

View 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'