framework7
framework7 copied to clipboard
fix(vue): Improve type definitions for framework7-vue/bundle
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:

After these fixes, this is what TypeScript reports:
