openedx / paragon

💎 An accessible, theme-ready design system built for learning applications and Open edX.
https://paragon-openedx.netlify.app
Apache License 2.0
118 stars 66 forks source link

Define types for Paragon exports #1964

Open adamstankiewicz opened 1 year ago

adamstankiewicz commented 1 year ago

Through https://github.com/openedx/paragon/pull/1962, it was discovered that we need to define types for Paragon's exports defined in src/index.js.

In the short term, we'd like to define these types in the Paragon repository itself.

An example related issue from the perspective of a consumer:

[engineer] who is trying to bring TypeScript into frontend-app-admin-portal ran into issue where TypeScript was complaining that Paragon's Button component didn't have types defined and would need to define them locally in the application to get around it.

PKulkoRaccoonGang commented 1 year ago

Pull Request: https://github.com/openedx/paragon/pull/2177

monteri commented 11 months ago

Reacreated PR: https://github.com/openedx/paragon/pull/2566