Skip to content

Commit

Permalink
feat: deprecate old defineStore
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Nov 28, 2024
1 parent 64fbd46 commit d1858e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/pinia/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d1858e8

Please sign in to comment.