From: Eduardo San Martin Morote Date: Tue, 27 Apr 2021 12:53:06 +0000 (+0200) Subject: refactor: remove old warning X-Git-Tag: v2.0.0-alpha.14~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=624be19131a51b739f8215c7b8f2b08ceaab85f7;p=thirdparty%2Fvuejs%2Fpinia.git refactor: remove old warning --- 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' /**