From 90893f46c930dbccd4251fa2f56bdde30b669158 Mon Sep 17 00:00:00 2001 From: Sukaato Date: Fri, 28 Jun 2024 21:02:20 +0200 Subject: [PATCH] feat(vue): add optional IonicConfig type parameter to IonicVue plugin (#29637) Issue number: https://github.com/ionic-team/ionic-framework/issues/29659 --------- ## What is the current behavior? while using `.use(IonicVue, {})`, the config object has no autocomplete. ## What is the new behavior? - Add type autocomplete on plugin option in VueJS package. ## Does this introduce a breaking change? - [ ] Yes - [x] No ## Other information Co-authored-by: Julien Vaumoron --- packages/vue/src/ionic-vue.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vue/src/ionic-vue.ts b/packages/vue/src/ionic-vue.ts index 8f8260389e0..0f10108f216 100644 --- a/packages/vue/src/ionic-vue.ts +++ b/packages/vue/src/ionic-vue.ts @@ -21,7 +21,7 @@ const getHelperFunctions = () => { }; }; -export const IonicVue: Plugin = { +export const IonicVue: Plugin<[IonicConfig?]> = { async install(_: App, config: IonicConfig = {}) { /** * By default Ionic Framework hides elements that