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'
1
2
import { getVueConstructor } from '../runtimeContext'
2
3
import { hasOwn , isPrimitive , isUndef , isValidArrayIndex } from '../utils'
3
4
4
5
/**
5
6
* Delete a property and trigger change if necessary.
6
7
*/
7
- export function del ( target : any , key : any ) {
8
+ export function del ( target : AnyObject , key : any ) {
8
9
const Vue = getVueConstructor ( )
9
10
const { warn } = Vue . util
10
11
Original file line number Diff line number Diff line change
1
+ import { AnyObject } from '../types/basic'
1
2
import { getVueConstructor } from '../runtimeContext'
2
3
import { isArray , isPrimitive , isUndef , isValidArrayIndex } from '../utils'
3
4
import { defineAccessControl } from './reactive'
@@ -7,7 +8,7 @@ import { defineAccessControl } from './reactive'
7
8
* notification and intercept it's subsequent access if the property doesn't
8
9
* already exist.
9
10
*/
10
- export function set < T > ( target : any , key : any , val : T ) : T {
11
+ export function set < T > ( target : AnyObject , key : any , val : T ) : T {
11
12
const Vue = getVueConstructor ( )
12
13
const { warn, defineReactive } = Vue . util
13
14
if ( __DEV__ && ( isUndef ( target ) || isPrimitive ( target ) ) ) {
You can’t perform that action at this time.
0 commit comments