types: remove 'this' annotation from 'get' accessor (#801)
The next version of Typescript disallows 'this' parameter annotations on accessors, which causes vue-next to fail to compile. This PR removes the annotation and adds a cast instead. Fixes #800
This commit is contained in:
parent
08bba093af
commit
16f9e63951
@ -176,8 +176,8 @@ const mutableInstrumentations: Record<string, Function> = {
|
|||||||
get(this: MapTypes, key: unknown) {
|
get(this: MapTypes, key: unknown) {
|
||||||
return get(this, key, toReactive)
|
return get(this, key, toReactive)
|
||||||
},
|
},
|
||||||
get size(this: IterableCollections) {
|
get size() {
|
||||||
return size(this)
|
return size(this as unknown as IterableCollections)
|
||||||
},
|
},
|
||||||
has,
|
has,
|
||||||
add,
|
add,
|
||||||
|
Loading…
Reference in New Issue
Block a user