From 624be19131a51b739f8215c7b8f2b08ceaab85f7 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Tue, 27 Apr 2021 14:53:06 +0200 Subject: [PATCH] refactor: remove old warning --- src/rootStore.ts | 7 +------ src/types.ts | 1 - 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/rootStore.ts b/src/rootStore.ts index 811b2002..faf4e5b5 100644 --- a/src/rootStore.ts +++ b/src/rootStore.ts @@ -109,6 +109,7 @@ declare module '@vue/runtime-core' { /** * Cache of stores instantiated by the current instance. Used by map * helpers. + * * @internal */ _pStores?: Record @@ -151,12 +152,6 @@ export function createPinia(): Pinia { }, use(plugin) { - /* istanbul ignore next */ - if (__DEV__ && !__TEST__) { - console.warn( - `[🍍]: The plugin API has plans to change to bring better extensibility. "pinia.use()" signature will change in the next release. It is recommended to avoid using this API.` - ) - } if (!localApp) { toBeInstalled.push(plugin) } else { diff --git a/src/types.ts b/src/types.ts index a7a5a2a4..6d1d8a26 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,3 @@ -import { Ref } from 'vue' import { Pinia } from './rootStore' /** -- 2.47.3