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

Add declaration files for each component which must contain the props declaration for the component #84

Open
the-halfbloodprince opened this issue Oct 25, 2021 · 2 comments

Comments

@the-halfbloodprince
Copy link
Contributor

Add declaration files for each component which must contain the props declaration for the component

  1. Add a declaration file eg. Button.d.ts for each component and extract the types into that file.
  2. If the types don't exist yet in the original component file, create them yourself seeing the code, they're fairly simple at this point.
  3. Use those types in the original component file by importing them.

If this confuses you feel free to comment below. We'll help you out understand the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants