import { SmartDeviceModel } from '@tuya-miniapp/sdm'; // import { ProductName } from '@/constants'; type SmartDeviceSchema = typeof import('@/devices/schema').fanSchema; // type SmartDevices = { // [ProductName]?: import('@tuya-miniapp/sdm').SmartDeviceModel; // }; export const devices = { fan: new SmartDeviceModel(), }; Object.keys(devices).forEach((k: keyof typeof devices) => { devices[k].init(); });