Skip to content

Commit

Permalink
chore(types): remove unnecessary Non-null assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-chang committed Jul 8, 2023
1 parent ef40591 commit 33eb404
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vueWrapper.ts
Expand Up @@ -26,9 +26,9 @@ function createVMProxy<T extends ComponentPublicInstance>(
): T {
return new Proxy(vm, {
get(vm, key, receiver) {
if (vm.$.exposed && vm.$.exposeProxy && key in vm.$.exposeProxy!) {
if (vm.$.exposed && vm.$.exposeProxy && key in vm.$.exposeProxy) {
// first if the key is exposed
return Reflect.get(vm.$.exposeProxy!, key, receiver)
return Reflect.get(vm.$.exposeProxy, key, receiver)
} else if (key in setupState) {
// second if the key is acccessible from the setupState
return Reflect.get(setupState, key, receiver)
Expand Down

0 comments on commit 33eb404

Please sign in to comment.