Closed samsiegart closed 3 months ago
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
Export the types in the package so typescript packages can import ui-components without declaring types on their own
Fixed in https://github.com/Agoric/ui-kit/pull/90
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