@@ -30,7 +30,7 @@ export function isPlainObject(
30
30
/**
31
31
* Recursive `Partial<T>`. Used by {@link Store.$patch}.
32
32
*
33
- * @ internal
33
+ * For internal use **only**
34
34
*/
35
35
export type _DeepPartial < T > = { [ K in keyof T ] ?: _DeepPartial < T [ K ] > }
36
36
// type DeepReadonly<T> = { readonly [P in keyof T]: DeepReadonly<T[P]> }
@@ -172,7 +172,7 @@ export type _Awaited<T> = T extends null | undefined
172
172
/**
173
173
* Actual type for {@link StoreOnActionListenerContext}. Exists for refactoring
174
174
* purposes. For internal use only.
175
- * @ internal
175
+ * For internal use **only**
176
176
*/
177
177
export interface _StoreOnActionListenerContext <
178
178
Store ,
@@ -289,8 +289,6 @@ export interface StoreProperties<Id extends string> {
289
289
* Used by devtools plugin to retrieve properties added with plugins. Removed
290
290
* in production. Can be used by the user to add property keys of the store
291
291
* that should be displayed in devtools.
292
- *
293
- * @internal
294
292
*/
295
293
_customProperties : Set < string >
296
294
@@ -436,7 +434,7 @@ export interface _StoreWithState<
436
434
/**
437
435
* Generic type for a function that can infer arguments and return type
438
436
*
439
- * @ internal
437
+ * For internal use **only**
440
438
*/
441
439
export type _Method = ( ...args : any [ ] ) => any
442
440
@@ -448,7 +446,7 @@ export type _Method = (...args: any[]) => any
448
446
// in this type we forget about this because otherwise the type is recursive
449
447
/**
450
448
* Store augmented for actions. For internal usage only.
451
- * @ internal
449
+ * For internal use **only**
452
450
*/
453
451
export type _StoreWithActions < A > = {
454
452
[ k in keyof A ] : A [ k ] extends ( ...args : infer P ) => infer R
@@ -458,7 +456,7 @@ export type _StoreWithActions<A> = {
458
456
459
457
/**
460
458
* Store augmented with getters. For internal usage only.
461
- * @ internal
459
+ * For internal use **only**
462
460
*/
463
461
export type _StoreWithGetters < G > = {
464
462
readonly [ k in keyof G ] : G [ k ] extends ( ...args : any [ ] ) => infer R
@@ -542,7 +540,7 @@ export interface PiniaCustomStateProperties<S extends StateTree = StateTree> {}
542
540
543
541
/**
544
542
* Type of an object of Getters that infers the argument. For internal usage only.
545
- * @ internal
543
+ * For internal use **only**
546
544
*/
547
545
export type _GettersTree < S extends StateTree > = Record <
548
546
string ,
@@ -552,42 +550,42 @@ export type _GettersTree<S extends StateTree> = Record<
552
550
553
551
/**
554
552
* Type of an object of Actions. For internal usage only.
555
- * @ internal
553
+ * For internal use **only**
556
554
*/
557
555
export type _ActionsTree = Record < string , _Method >
558
556
559
557
/**
560
558
* Type that enables refactoring through IDE.
561
- * @ internal
559
+ * For internal use **only**
562
560
*/
563
561
export type _ExtractStateFromSetupStore_Keys < SS > = keyof {
564
562
[ K in keyof SS as SS [ K ] extends _Method | ComputedRef ? never : K ] : any
565
563
}
566
564
567
565
/**
568
566
* Type that enables refactoring through IDE.
569
- * @ internal
567
+ * For internal use **only**
570
568
*/
571
569
export type _ExtractActionsFromSetupStore_Keys < SS > = keyof {
572
570
[ K in keyof SS as SS [ K ] extends _Method ? K : never ] : any
573
571
}
574
572
575
573
/**
576
574
* Type that enables refactoring through IDE.
577
- * @ internal
575
+ * For internal use **only**
578
576
*/
579
577
export type _ExtractGettersFromSetupStore_Keys < SS > = keyof {
580
578
[ K in keyof SS as SS [ K ] extends ComputedRef ? K : never ] : any
581
579
}
582
580
583
581
/**
584
582
* Type that enables refactoring through IDE.
585
- * @ internal
583
+ * For internal use **only**
586
584
*/
587
585
export type _UnwrapAll < SS > = { [ K in keyof SS ] : UnwrapRef < SS [ K ] > }
588
586
589
587
/**
590
- * @ internal
588
+ * For internal use **only**
591
589
*/
592
590
export type _ExtractStateFromSetupStore < SS > = SS extends undefined | void
593
591
? { }
@@ -596,7 +594,7 @@ export type _ExtractStateFromSetupStore<SS> = SS extends undefined | void
596
594
: never
597
595
598
596
/**
599
- * @ internal
597
+ * For internal use **only**
600
598
*/
601
599
export type _ExtractActionsFromSetupStore < SS > = SS extends undefined | void
602
600
? { }
@@ -605,7 +603,7 @@ export type _ExtractActionsFromSetupStore<SS> = SS extends undefined | void
605
603
: never
606
604
607
605
/**
608
- * @ internal
606
+ * For internal use **only**
609
607
*/
610
608
export type _ExtractGettersFromSetupStore < SS > = SS extends undefined | void
611
609
? { }
0 commit comments