import { Checking, type Test } from "hry-types"; import { RootComponent } from "../.."; /** * Properties配置为`{}`时 */ const emptyObj = RootComponent()({ properties: {}, methods: { foo() { // 1 this.data 为空对象类型 Checking; }, }, }); // 2 返回文档类型无properties字段 Checking; /** * 无Properties配置时 */ const noProperties = RootComponent()({ methods: { foo() { // 3 this.data 为空对象类型 Checking; }, }, }); // 4 返回文档类型无properties字段 Checking;