]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
feat: deprecate old defineStore
authorEduardo San Martin Morote <posva13@gmail.com>
Thu, 28 Nov 2024 11:40:42 +0000 (12:40 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Thu, 28 Nov 2024 11:40:42 +0000 (12:40 +0100)
packages/pinia/src/store.ts

index 76c1bc77b14168654bd950a0ec1ed8d47cad0fe0..617645c152f332c7616e5ed9f7269b3d00f2053d 100644 (file)
@@ -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,