I noticed the following error when using the library:
node_modules/tp-link-tapo-connect/dist/api.d.ts:1:59 - error TS2307: Cannot find module './types' or its corresponding type declarations.
1 import { TapoDevice, TapoDeviceKey, TapoDeviceInfo } from "./types";
Renaming the file causes the types to be generated in dist. I have also exported the types in api.ts so that they can be used directly in Typescript projects.
I noticed the following error when using the library:
Renaming the file causes the types to be generated in dist. I have also exported the types in api.ts so that they can be used directly in Typescript projects.