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

Types from @figma/plugin-typings are not available when installed #25

Open
wesgro opened this issue Aug 30, 2024 · 1 comment
Open

Types from @figma/plugin-typings are not available when installed #25

wesgro opened this issue Aug 30, 2024 · 1 comment

Comments

@wesgro
Copy link

wesgro commented Aug 30, 2024

👋 Loving this tool

I noticed that the page nodes I get back from getAllPages() are typed as any which I believe is because y'all are depending on ambient types from the @figma/plugin-typings existing which will not be the case when this library is installed externally.

I think the fix would be to make that a dependency of this package and import them over expecting them to be implicitly available through typeRoots

@wesgro
Copy link
Author

wesgro commented Aug 30, 2024

Upon further inspection it looks like those types are meant to be included this way... So maybe it just needs to part of the install instructions

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

No branches or pull requests

1 participant