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

publish types #62

Open turadg opened 9 months ago

turadg commented 9 months ago

Problem to be solved

The packages don't include typedefs. This results in errors like,

Type error: Could not find a declaration file for module '@agoric/ui-components'. '/opt/agoric/open-crowd/node_modules/.pnpm/@agoric+ui-components@0.9.0_@endo+ses-ava@0.2.44_ava@5.3.1/node_modules/@agoric/ui-components/dist/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/agoric__ui-components` if it exists or add a new declaration (.d.ts) file containing `declare module '@agoric/ui-components';`

Design

Build and export them like Endo does https://github.com/endojs/endo/issues/1254