Skip to content

Commit

Permalink
🔧 fix: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Rettend committed Apr 10, 2024
1 parent 2aa4859 commit 40f7a70
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
"eemoji": "^2.0.2",
"eslint": "^8.57.0",
"jsdom": "^24.0.0",
"pinia-plugin-persistedstate": "^3.1.0",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"unocss": "^0.58.5",
Expand Down
11 changes: 6 additions & 5 deletions src/generic.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { type Store, type StoreDefinition, defineStore } from 'pinia'
// import type { ExtractStore, PiniaActionThis, PiniaGetterThis, StoreThis } from 'pinia-generic'
import type { ExtractStore, PiniaActionThis, PiniaGetterThis, StoreThis } from './types'
import { filterUndefined } from './utils'

Expand All @@ -10,7 +11,7 @@ import { filterUndefined } from './utils'
* @param state - The state object.
*/
export function createState<
TStore extends Store,
TStore extends Store,
TGenericStore extends Store = Store,
>(
state: {
Expand All @@ -30,7 +31,7 @@ TGenericStore extends Store = Store,
* @param getters - The getters object.
*/
export function createGetters<
TStore extends Store,
TStore extends Store,
TGenericStore extends Store = Store,
>(
getters: PiniaGetterThis<TStore, TGenericStore>,
Expand All @@ -47,7 +48,7 @@ TGenericStore extends Store = Store,
* @param actions - The actions object.
*/
export function createActions<
TStore extends Store,
TStore extends Store,
TGenericStore extends Store = Store,
>(
actions: PiniaActionThis<TStore, TGenericStore>,
Expand All @@ -64,7 +65,7 @@ TGenericStore extends Store = Store,
* @param baseStore - Another base store to extend.
*/
export function defineGenericStore<
TStore extends Store,
TStore extends Store,
TGenericStore extends Store = Store,
>(
store: StoreThis<TStore, TGenericStore>,
Expand Down Expand Up @@ -106,7 +107,7 @@ TGenericStore extends Store = Store,
* @param genericStore - The generic store object.
*/
export function useStore<
TStore extends Store,
TStore extends Store,
TGenericStore extends Store = Store,
>(
id: TStore['$id'],
Expand Down

0 comments on commit 40f7a70

Please sign in to comment.