Skip to content

Commit

Permalink
fix(vue): Improve type definitions for framework7-vue/bundle (#4075)
Browse files Browse the repository at this point in the history
  • Loading branch information
peitschie committed Oct 31, 2022
1 parent d4863d6 commit 7d68a65
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
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;

0 comments on commit 7d68a65

Please sign in to comment.