typeScript使用响应式变量报错:2304,找不到名称,但是程序正常运行,浏览器f12没报错

一段代码,只要是要使用msg,显示正常,浏览器正常运行,F12没有报错,但是编译报错,强迫症难受,

img

<template>
  <div>
    {{ msg }}
  </div>
</template>

<script lang="ts">
import { reactive, toRefs } from 'vue';

export default {
  setup(): unknown {
    const time = reactive({
      msg: 'msg!!!',
    });

    return {
      ...toRefs(time),
    };
  },
};
</script>

<style lang="less">
.demo-time-range {
  .el-select {
    margin-right: 8px;
  }
}
</style>

貌似是eslint的问题,rules中加上

"@typescript-eslint/explicit-module-boundary-types": "off"

然后重新打开vscode与服务器 (我两个都重新开了才生效,搞了一天,人都傻了)