mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 02:57:43 +08:00
chore: remove duplicated types
This commit is contained in:
parent
05aaa33a45
commit
282ebb0893
@ -1,7 +1,6 @@
|
||||
import { isRef, Ref } from './reactivity/ref'
|
||||
import { ComputedRef } from './reactivity/computed'
|
||||
import { isReactive, isShallow } from './reactivity/reactive'
|
||||
import { TrackOpTypes, TriggerOpTypes } from './reactivity/operations'
|
||||
import {
|
||||
warn,
|
||||
noop,
|
||||
@ -14,7 +13,11 @@ import {
|
||||
} from 'core/util'
|
||||
import { currentInstance } from './currentInstance'
|
||||
import { traverse } from 'core/observer/traverse'
|
||||
import { EffectScheduler, ReactiveEffect } from './reactivity/effect'
|
||||
import {
|
||||
EffectScheduler,
|
||||
ReactiveEffect,
|
||||
DebuggerEvent
|
||||
} from './reactivity/effect'
|
||||
|
||||
const WATCHER = `watcher`
|
||||
const WATCHER_CB = `${WATCHER} callback`
|
||||
@ -54,19 +57,6 @@ export interface DebuggerOptions {
|
||||
onTrigger?: (event: DebuggerEvent) => void
|
||||
}
|
||||
|
||||
export type DebuggerEvent = {
|
||||
// TODO effect: ReactiveEffect
|
||||
} & DebuggerEventExtraInfo
|
||||
|
||||
export type DebuggerEventExtraInfo = {
|
||||
target: object
|
||||
type: TrackOpTypes | TriggerOpTypes
|
||||
key: any
|
||||
newValue?: any
|
||||
oldValue?: any
|
||||
oldTarget?: Map<any, any> | Set<any>
|
||||
}
|
||||
|
||||
export interface WatchOptions<Immediate = boolean> extends WatchOptionsBase {
|
||||
immediate?: Immediate
|
||||
deep?: boolean
|
||||
|
@ -47,6 +47,5 @@ export {
|
||||
watch,
|
||||
watchEffect,
|
||||
watchPostEffect,
|
||||
watchSyncEffect,
|
||||
DebuggerEvent
|
||||
watchSyncEffect
|
||||
} from './apiWatch'
|
||||
|
Loading…
Reference in New Issue
Block a user