Skip to content

Commit

Permalink
fix: export onEffectCleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Dec 26, 2023
1 parent 409b52a commit db4463c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/reactivity/src/baseWatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export enum BaseWatchErrorCodes {
WATCH_CLEANUP = 'BaseWatchErrorCodes_WATCH_CLEANUP'
}

// TODO move to a scheduler package
export interface SchedulerJob extends Function {
id?: number
pre?: boolean
Expand Down
1 change: 1 addition & 0 deletions packages/reactivity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export {
export { TrackOpTypes, TriggerOpTypes, ReactiveFlags } from './constants'
export {
baseWatch,
onEffectCleanup,
BaseWatchErrorCodes,
type BaseWatchOptions
} from './baseWatch'
1 change: 1 addition & 0 deletions packages/runtime-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export {
// effect
effect,
stop,
onEffectCleanup,
ReactiveEffect,
// effect scope
effectScope,
Expand Down

0 comments on commit db4463c

Please sign in to comment.