framework7 icon indicating copy to clipboard operation
framework7 copied to clipboard

fix(vue): Improve type definitions for framework7-vue/bundle

Open peitschie opened this issue 3 years ago • 0 comments

The framework7-vue type definitions inaccurately suggest registerComponents is exported by the framework7-vue module. The package.json also lacks any way for TypeScript to tell what the type definitions are for the bundle module.

This slight adjust fixes both of these requirements. The hint on using typeVersions comes from https://stackoverflow.com/a/70020984/156169

Before these fixes: image

After these fixes, this is what TypeScript reports: image

peitschie avatar Sep 20 '22 05:09 peitschie