Agoric / ui-kit

Components and tools for building graphical UIs
https://ui-kit-dwm.pages.dev/
Apache License 2.0
3 stars 3 forks source link

Export types from packages/ui-components #84

Closed samsiegart closed 3 months ago

samsiegart commented 4 months ago

What is the Problem Being Solved?

ui-components doesn't export types, so building typescript dapps requires declaring the types on your own. Example issue: https://github.com/Agoric/dapp-offer-up/pull/64#issuecomment-1960005455

Example workaround with vite: https://github.com/Agoric/dapp-offer-up/blob/main/ui/src/vite-env.d.ts

Description of the Design

Export the types in the package so typescript packages can import ui-components without declaring types on their own

samsiegart commented 3 months ago

Fixed in https://github.com/Agoric/ui-kit/pull/90