types(reactivity): remove this in get accessor, fix #800 (#806)

This commit is contained in:
djy0
2020-03-10 04:01:49 +08:00
committed by GitHub
parent 257727569a
commit b13886b1ba
2 changed files with 3 additions and 3 deletions

View File

@@ -200,8 +200,8 @@ const readonlyInstrumentations: Record<string, Function> = {
get(this: MapTypes, key: unknown) {
return get(this, key, toReadonly)
},
get size(this: IterableCollections) {
return size(this)
get size() {
return size((this as unknown) as IterableCollections)
},
has,
add: createReadonlyMethod(add, TriggerOpTypes.ADD),