File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ import { AnyObject } from '../types/basic'
12import { getVueConstructor } from '../runtimeContext'
23import { hasOwn , isPrimitive , isUndef , isValidArrayIndex } from '../utils'
34
45/**
56 * Delete a property and trigger change if necessary.
67 */
7- export function del ( target : any , key : any ) {
8+ export function del ( target : AnyObject , key : any ) {
89 const Vue = getVueConstructor ( )
910 const { warn } = Vue . util
1011
Original file line number Diff line number Diff line change 1+ import { AnyObject } from '../types/basic'
12import { getVueConstructor } from '../runtimeContext'
23import { isArray , isPrimitive , isUndef , isValidArrayIndex } from '../utils'
34import { defineAccessControl } from './reactive'
@@ -7,7 +8,7 @@ import { defineAccessControl } from './reactive'
78 * notification and intercept it's subsequent access if the property doesn't
89 * already exist.
910 */
10- export function set < T > ( target : any , key : any , val : T ) : T {
11+ export function set < T > ( target : AnyObject , key : any , val : T ) : T {
1112 const Vue = getVueConstructor ( )
1213 const { warn, defineReactive } = Vue . util
1314 if ( __DEV__ && ( isUndef ( target ) || isPrimitive ( target ) ) ) {
You can’t perform that action at this time.
0 commit comments