Skip to content

Commit a950401

Browse files
committed
refactor: remove uneeded type guard
1 parent 40275cf commit a950401

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

packages/pinia/src/types.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -609,18 +609,14 @@ export type _ExtractStateFromSetupStore<SS> = SS extends undefined | void
609609
*/
610610
export type _ExtractActionsFromSetupStore<SS> = SS extends undefined | void
611611
? {}
612-
: _ExtractActionsFromSetupStore_Keys<SS> extends keyof SS
613-
? Pick<SS, _ExtractActionsFromSetupStore_Keys<SS>>
614-
: never
612+
: Pick<SS, _ExtractActionsFromSetupStore_Keys<SS>>
615613

616614
/**
617615
* For internal use **only**
618616
*/
619617
export type _ExtractGettersFromSetupStore<SS> = SS extends undefined | void
620618
? {}
621-
: _ExtractGettersFromSetupStore_Keys<SS> extends keyof SS
622-
? Pick<SS, _ExtractGettersFromSetupStore_Keys<SS>>
623-
: never
619+
: Pick<SS, _ExtractGettersFromSetupStore_Keys<SS>>
624620

625621
/**
626622
* Options passed to `defineStore()` that are common between option and setup

0 commit comments

Comments
 (0)