index.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. export {
  2. ref,
  3. shallowRef,
  4. isRef,
  5. toRef,
  6. toValue,
  7. toRefs,
  8. unref,
  9. proxyRefs,
  10. customRef,
  11. triggerRef,
  12. type Ref,
  13. type MaybeRef,
  14. type MaybeRefOrGetter,
  15. type ToRef,
  16. type ToRefs,
  17. type UnwrapRef,
  18. type ShallowRef,
  19. type ShallowUnwrapRef,
  20. type RefUnwrapBailTypes,
  21. type CustomRefFactory,
  22. } from './ref'
  23. export {
  24. reactive,
  25. readonly,
  26. isReactive,
  27. isReadonly,
  28. isShallow,
  29. isProxy,
  30. shallowReactive,
  31. shallowReadonly,
  32. markRaw,
  33. toRaw,
  34. toReactive,
  35. toReadonly,
  36. type Raw,
  37. type DeepReadonly,
  38. type ShallowReactive,
  39. type UnwrapNestedRefs,
  40. type Reactive,
  41. type ReactiveMarker,
  42. } from './reactive'
  43. export {
  44. computed,
  45. type ComputedRef,
  46. type WritableComputedRef,
  47. type WritableComputedOptions,
  48. type ComputedGetter,
  49. type ComputedSetter,
  50. type ComputedRefImpl,
  51. } from './computed'
  52. export {
  53. effect,
  54. stop,
  55. enableTracking,
  56. pauseTracking,
  57. resetTracking,
  58. onEffectCleanup,
  59. ReactiveEffect,
  60. EffectFlags,
  61. type ReactiveEffectRunner,
  62. type ReactiveEffectOptions,
  63. type EffectScheduler,
  64. type DebuggerOptions,
  65. type DebuggerEvent,
  66. type DebuggerEventExtraInfo,
  67. } from './effect'
  68. export {
  69. trigger,
  70. track,
  71. ITERATE_KEY,
  72. ARRAY_ITERATE_KEY,
  73. MAP_KEY_ITERATE_KEY,
  74. } from './dep'
  75. export {
  76. effectScope,
  77. EffectScope,
  78. getCurrentScope,
  79. /**
  80. * @internal
  81. */
  82. setCurrentScope,
  83. onScopeDispose,
  84. } from './effectScope'
  85. export { reactiveReadArray, shallowReadArray } from './arrayInstrumentations'
  86. export { TrackOpTypes, TriggerOpTypes, ReactiveFlags } from './constants'
  87. export {
  88. watch,
  89. getCurrentWatcher,
  90. traverse,
  91. onWatcherCleanup,
  92. WatchErrorCodes,
  93. /**
  94. * @internal
  95. */
  96. WatcherEffect,
  97. type WatchOptions,
  98. type WatchStopHandle,
  99. type WatchHandle,
  100. type WatchEffect,
  101. type WatchSource,
  102. type WatchCallback,
  103. type OnCleanup,
  104. } from './watch'
  105. /**
  106. * @internal
  107. */
  108. export { setActiveSub } from './system'