Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"./shared/*": "./shared/*"
},
"typings": "framework7-vue.d.ts",
"typesVersions": {
"*": {
"bundle": ["framework7-vue-bundle.d.ts"]
}
},
"web-types": "framework7-vue-web-types.json",
"repository": {
"type": "git",
Expand Down Expand Up @@ -48,4 +53,4 @@
"type": "patreon",
"url": "https://www.patreon.com/framework7"
}
}
}
5 changes: 5 additions & 0 deletions src/vue/framework7-vue-bundle.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export * from ".";

declare const registerComponents: (app: any) => void;

export { registerComponents };
3 changes: 1 addition & 2 deletions src/vue/framework7-vue.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ declare const f7ready: (callback: (f7: Framework7) => void) => void;

declare const Framework7Vue: Framework7Plugin;

declare const registerComponents: (app: any) => void;

interface useStore {
(store: Store, getter: string): any;
Expand All @@ -30,5 +29,5 @@ interface useStore {
declare const useStore: useStore;

// EXPORT_COMPONENTS
export { f7, f7ready, theme, registerComponents, useStore };
export { f7, f7ready, theme, useStore };
export default Framework7Vue;