Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export types in api.ts #10

Merged
merged 2 commits into from
Oct 6, 2021
Merged

Export types in api.ts #10

merged 2 commits into from
Oct 6, 2021

Conversation

sebbo2002
Copy link
Contributor

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.

Fixes the missing ./dist/types file in api.d.ts
@dickydoouk dickydoouk merged commit 172b49b into dickydoouk:master Oct 6, 2021
@dickydoouk
Copy link
Owner

Thanks @sebbo2002 much appreciated. All merged. Will publish ASAP with these changes in.

@sebbo2002 sebbo2002 deleted the feature/type-export branch October 6, 2021 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants