Skip to content

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

Merged
nolimits4web merged 1 commit intoframework7io:masterfrom
peitschie:vue-improvements
Oct 31, 2022
Merged

fix(vue): Improve type definitions for framework7-vue/bundle#4075
nolimits4web merged 1 commit intoframework7io:masterfrom
peitschie:vue-improvements

Conversation

@peitschie
Copy link
Copy Markdown
Contributor

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

@nolimits4web nolimits4web merged commit 7d68a65 into framework7io:master Oct 31, 2022
@peitschie peitschie deleted the vue-improvements branch October 31, 2022 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants