@vue/runtime-core
Advanced tools
Comparing version 3.0.0-beta.4 to 3.0.0-beta.5
@@ -104,8 +104,2 @@ import { camelize } from '@vue/shared'; | ||
export declare interface BaseWatchOptions { | ||
flush?: 'pre' | 'post' | 'sync'; | ||
onTrack?: ReactiveEffectOptions['onTrack']; | ||
onTrigger?: ReactiveEffectOptions['onTrigger']; | ||
} | ||
export declare function callWithAsyncErrorHandling(fn: Function | Function[], instance: ComponentInternalInstance | null, type: ErrorTypes, args?: unknown[]): any[]; | ||
@@ -241,3 +235,3 @@ | ||
declare interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, E extends EmitsOptions, EE extends string = string> extends LegacyOptions<Props, D, C, M>, SFCInternalOptions, ComponentCustomOptions { | ||
export declare interface ComponentOptionsBase<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, E extends EmitsOptions, EE extends string = string> extends LegacyOptions<Props, D, C, M>, SFCInternalOptions, ComponentCustomOptions { | ||
setup?: (this: void, props: Props, ctx: SetupContext<E>) => RawBindings | RenderFunction | void; | ||
@@ -520,3 +514,3 @@ name?: string; | ||
declare function instanceWatch(this: ComponentInternalInstance, source: string | Function, cb: Function, options?: WatchOptions): StopHandle; | ||
declare function instanceWatch(this: ComponentInternalInstance, source: string | Function, cb: Function, options?: WatchOptions): WatchStopHandle; | ||
@@ -723,2 +717,4 @@ declare type InternalSlots = { | ||
export declare function queuePostFlushCb(cb: Function | Function[]): void; | ||
declare type RawChildren = string | number | boolean | VNode | VNodeArrayChildren | (() => any); | ||
@@ -792,2 +788,3 @@ | ||
insertStaticContent?(content: string, parent: HostElement, anchor: HostNode | null, isSVG: boolean): HostElement; | ||
setStaticContent?(node: HostElement, content: string): void; | ||
} | ||
@@ -881,4 +878,2 @@ | ||
export declare type StopHandle = () => void; | ||
export declare const Suspense: { | ||
@@ -1058,5 +1053,5 @@ new (): { | ||
export declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, Immediate extends true ? (T | undefined) : T>, options?: WatchOptions<Immediate>): StopHandle; | ||
export declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, Immediate extends true ? (T | undefined) : T>, options?: WatchOptions<Immediate>): WatchStopHandle; | ||
export declare function watch<T extends Readonly<WatchSource<unknown>[]>, Immediate extends Readonly<boolean> = false>(sources: T, cb: WatchCallback<MapSources<T>, MapOldSources<T, Immediate>>, options?: WatchOptions<Immediate>): StopHandle; | ||
export declare function watch<T extends Readonly<WatchSource<unknown>[]>, Immediate extends Readonly<boolean> = false>(sources: T, cb: WatchCallback<MapSources<T>, MapOldSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle; | ||
@@ -1067,3 +1062,3 @@ export declare type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onInvalidate: InvalidateCbRegistrator) => any; | ||
export declare function watchEffect(effect: WatchEffect, options?: BaseWatchOptions): StopHandle; | ||
export declare function watchEffect(effect: WatchEffect, options?: WatchOptionsBase): WatchStopHandle; | ||
@@ -1074,3 +1069,3 @@ declare type WatchOptionItem = string | WatchCallback | { | ||
export declare interface WatchOptions<Immediate = boolean> extends BaseWatchOptions { | ||
export declare interface WatchOptions<Immediate = boolean> extends WatchOptionsBase { | ||
immediate?: Immediate; | ||
@@ -1080,4 +1075,12 @@ deep?: boolean; | ||
export declare interface WatchOptionsBase { | ||
flush?: 'pre' | 'post' | 'sync'; | ||
onTrack?: ReactiveEffectOptions['onTrack']; | ||
onTrigger?: ReactiveEffectOptions['onTrigger']; | ||
} | ||
export declare type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T); | ||
export declare type WatchStopHandle = () => void; | ||
export declare function withCtx(fn: Slot, ctx?: ComponentInternalInstance | null): Slot; | ||
@@ -1084,0 +1087,0 @@ |
{ | ||
"name": "@vue/runtime-core", | ||
"version": "3.0.0-beta.4", | ||
"version": "3.0.0-beta.5", | ||
"description": "@vue/runtime-core", | ||
@@ -34,5 +34,5 @@ "main": "index.js", | ||
"dependencies": { | ||
"@vue/shared": "3.0.0-beta.4", | ||
"@vue/reactivity": "3.0.0-beta.4" | ||
"@vue/shared": "3.0.0-beta.5", | ||
"@vue/reactivity": "3.0.0-beta.5" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
669449
16579
152
+ Added@vue/reactivity@3.0.0-beta.5(transitive)
+ Added@vue/shared@3.0.0-beta.5(transitive)
- Removed@vue/reactivity@3.0.0-beta.4(transitive)
- Removed@vue/shared@3.0.0-beta.4(transitive)
Updated@vue/reactivity@3.0.0-beta.5
Updated@vue/shared@3.0.0-beta.5