From d1858e8c932d89cd2bf9121fe62179795ebb5c5f Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 28 Nov 2024 12:40:42 +0100 Subject: [PATCH] feat: deprecate old defineStore --- packages/pinia/src/store.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/pinia/src/store.ts b/packages/pinia/src/store.ts index 76c1bc77b1..617645c152 100644 --- a/packages/pinia/src/store.ts +++ b/packages/pinia/src/store.ts @@ -841,6 +841,8 @@ export function defineStore< * Creates a `useStore` function that retrieves the store instance * * @param options - options to define the store + * + * @deprecated use `defineStore(id, options)` instead */ export function defineStore< Id extends string,