vue3-core/packages/reactivity/src/index.ts

91 lines
1.7 KiB
TypeScript

export {
ref,
shallowRef,
isRef,
toRef,
toValue,
toRefs,
unref,
proxyRefs,
customRef,
triggerRef,
type Ref,
type MaybeRef,
type MaybeRefOrGetter,
type ToRef,
type ToRefs,
type UnwrapRef,
type ShallowRef,
type ShallowUnwrapRef,
type RefUnwrapBailTypes,
type CustomRefFactory,
} from './ref'
export {
reactive,
readonly,
isReactive,
isReadonly,
isShallow,
isProxy,
shallowReactive,
shallowReadonly,
markRaw,
toRaw,
toReactive,
toReadonly,
type Raw,
type DeepReadonly,
type ShallowReactive,
type UnwrapNestedRefs,
} from './reactive'
export {
computed,
type ComputedRef,
type WritableComputedRef,
type WritableComputedOptions,
type ComputedGetter,
type ComputedSetter,
type ComputedRefImpl,
} from './computed'
export {
effect,
stop,
enableTracking,
pauseTracking,
resetTracking,
onEffectCleanup,
ReactiveEffect,
EffectFlags,
type ReactiveEffectRunner,
type ReactiveEffectOptions,
type EffectScheduler,
type DebuggerOptions,
type DebuggerEvent,
type DebuggerEventExtraInfo,
} from './effect'
export {
trigger,
track,
ITERATE_KEY,
ARRAY_ITERATE_KEY,
MAP_KEY_ITERATE_KEY,
} from './dep'
export {
effectScope,
EffectScope,
getCurrentScope,
onScopeDispose,
} from './effectScope'
export { reactiveReadArray, shallowReadArray } from './arrayInstrumentations'
export { TrackOpTypes, TriggerOpTypes, ReactiveFlags } from './constants'
export {
baseWatch,
getCurrentWatcher,
traverse,
onWatcherCleanup,
BaseWatchErrorCodes,
type BaseWatchOptions,
type WatchScheduler,
} from './baseWatch'
export { type SchedulerJob, SchedulerJobFlags } from './scheduler'