Skip to content

Commit e484b25

Browse files
committed
types: export missing types
1 parent bfd33fa commit e484b25

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

packages/reactivity/src/effectScope.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ReactiveEffect } from './effect'
22
import { warn } from './warning'
33

4-
type EffectScopeOnStopHook = (fn: (() => void)) => void
4+
export type EffectScopeOnStopHook = (fn: (() => void)) => void
55

66
export interface EffectScope {
77
_isEffectScope: true
@@ -14,7 +14,7 @@ export interface EffectScope {
1414
onStopHooks: ((scope: EffectScope) => void)[]
1515
}
1616

17-
interface EffectScopeReturnsWrapper {
17+
export interface EffectScopeReturnsWrapper {
1818
/**
1919
* @internal the scope instance
2020
*/

packages/reactivity/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ export {
5959
onScopeStopped,
6060
EffectScope,
6161
EffectScopeOptions,
62-
EffectScopeReturns
62+
EffectScopeReturns,
63+
EffectScopeOnStopHook,
64+
EffectScopeReturnsWrapper
6365
} from './effectScope'
6466
export { TrackOpTypes, TriggerOpTypes } from './operations'

packages/runtime-core/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ export {
159159
DeepReadonly,
160160
EffectScope,
161161
EffectScopeOptions,
162-
EffectScopeReturns
162+
EffectScopeReturns,
163+
EffectScopeOnStopHook,
164+
EffectScopeReturnsWrapper
163165
} from '@vue/reactivity'
164166
export {
165167
WatchEffect,

0 commit comments

Comments
 (0)