-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add TypeScript types #12
Comments
Hi |
Hey @alienkarma, this is a critical issue for the library. Thanks for taking it up. Let me know if you have any questions! |
Hi
I installed pnpm, and then ran the following commands from the root project:- Am I doing something wrong? Do I need to configure anything else? Also looking at the structure, inside the packages/ui folder, I will create a types folder and place all the type declarations there. |
@SaadBazaz Hi |
@alienkarma - are you running on Windows? This works okay on *nix machines. |
Also, from your error log, it seems like you don't have Also, I recommend WSL for development. |
Hi |
I understand, thanks for the attempt. There's a lot more todo in the project too, you can check the Pull Requests. A different approach for this particular issue: |
I am not sure if that would work or not. I will try to rework on it using what you suggested. Will update once I get to it. |
@alienkarma - Did you have any progress? Could you open a PR with the progress you have? |
We currently need to add //@ts-nocheck because TypeScript types don't work :(
For some reason, when we compile with tsup with
dts: true
, it throws weird errors. (Note that this line is commented out)Also, our other non-Web-Component files need TypeScript types too.
These also need to be consistent.
The text was updated successfully, but these errors were encountered: