Skip to content

Commit f4712ae

Browse files
committed
docs: api
1 parent ee7b4f2 commit f4712ae

File tree

9 files changed

+81
-8
lines changed

9 files changed

+81
-8
lines changed

packages/docs/api/pinia/functions/mapActions.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ object to define new names for the actions
5757

5858
[`_MapActionsObjectReturn`](../type-aliases/MapActionsObjectReturn.md)\<`A`, `KeyMapper`\>
5959

60+
### Param
61+
62+
store to map from
63+
64+
### Param
65+
66+
array or object
67+
6068
### Example
6169

6270
```js
@@ -106,6 +114,14 @@ array of action names to map
106114

107115
[`_MapActionsReturn`](../type-aliases/MapActionsReturn.md)\<`A`\>
108116

117+
### Param
118+
119+
store to map from
120+
121+
### Param
122+
123+
array or object
124+
109125
### Example
110126

111127
```js

packages/docs/api/pinia/functions/mapGetters.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ object of state properties or getters
5454

5555
[`_MapStateObjectReturn`](../type-aliases/MapStateObjectReturn.md)\<`Id`, `S`, `G`, `A`, `KeyMapper`\>
5656

57+
### Deprecated
58+
59+
use `mapState()` instead.
60+
5761
### Example
5862

5963
```js
@@ -113,6 +117,10 @@ array of state properties or getters
113117

114118
[`_MapStateReturn`](../type-aliases/MapStateReturn.md)\<`S`, `G`, `Keys`\>
115119

120+
### Deprecated
121+
122+
use `mapState()` instead.
123+
116124
### Example
117125

118126
```js

packages/docs/api/pinia/functions/mapState.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ object of state properties or getters
6060

6161
[`_MapStateObjectReturn`](../type-aliases/MapStateObjectReturn.md)\<`Id`, `S`, `G`, `A`, `KeyMapper`\>
6262

63+
### Param
64+
65+
store to map from
66+
67+
### Param
68+
69+
array or object
70+
6371
### Example
6472

6573
```js
@@ -119,6 +127,14 @@ array of state properties or getters
119127

120128
[`_MapStateReturn`](../type-aliases/MapStateReturn.md)\<`S`, `G`, `Keys`\>
121129

130+
### Param
131+
132+
store to map from
133+
134+
### Param
135+
136+
array or object
137+
122138
### Example
123139

124140
```js

packages/docs/api/pinia/functions/mapWritableState.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ object of state properties
5656

5757
[`_MapWritableStateObjectReturn`](../type-aliases/MapWritableStateObjectReturn.md)\<`S`, `KeyMapper`\>
5858

59+
### Param
60+
61+
store to map from
62+
63+
### Param
64+
65+
array or object
66+
5967
## mapWritableState(useStore, keys)
6068

6169
> **mapWritableState**\<`Id`, `S`, `G`, `A`, `Keys`\>(`useStore`, `keys`): `{ [K in Keys]: Object }`
@@ -89,3 +97,11 @@ array of state properties
8997
### Returns
9098

9199
`{ [K in Keys]: Object }`
100+
101+
### Param
102+
103+
store to map from
104+
105+
### Param
106+
107+
array or object

packages/docs/api/pinia/functions/setActivePinia.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ actions and getters
3232

3333
[`Pinia`](../interfaces/Pinia.md)
3434

35+
### Param
36+
37+
Pinia instance
38+
3539
## setActivePinia(pinia)
3640

3741
> **setActivePinia**(`pinia`): `undefined`
@@ -47,6 +51,10 @@ actions and getters
4751

4852
`undefined`
4953

54+
### Param
55+
56+
Pinia instance
57+
5058
## setActivePinia(pinia)
5159

5260
> **setActivePinia**(`pinia`): `undefined` \| [`Pinia`](../interfaces/Pinia.md)
@@ -61,3 +69,7 @@ actions and getters
6169
### Returns
6270

6371
`undefined` \| [`Pinia`](../interfaces/Pinia.md)
72+
73+
### Param
74+
75+
Pinia instance

packages/docs/api/pinia/interfaces/DefineStoreOptionsInPlugin.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,6 @@ initialState
8888

8989
`void`
9090

91-
#### Inherited from
92-
93-
`Omit.hydrate`
94-
9591
#### Example
9692

9793
If in your `state`, you use any `customRef`s, any `computed`s, or any `ref`s that have a different value on
@@ -109,3 +105,7 @@ const useStore = defineStore('main', {
109105
}
110106
})
111107
```
108+
109+
#### Inherited from
110+
111+
`Omit.hydrate`

packages/docs/api/pinia/interfaces/PiniaPlugin.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ Plugin to extend every store.
1414

1515
> **PiniaPlugin**(`context`): `void` \| `Partial`\<[`PiniaCustomProperties`](PiniaCustomProperties.md)\<`string`, [`StateTree`](../type-aliases/StateTree.md), [`_GettersTree`](../type-aliases/GettersTree.md)\<[`StateTree`](../type-aliases/StateTree.md)\>, [`_ActionsTree`](../type-aliases/ActionsTree.md)\> & [`PiniaCustomStateProperties`](PiniaCustomStateProperties.md)\<[`StateTree`](../type-aliases/StateTree.md)\>\>
1616
17-
Plugin to extend every store. Returns an object to extend the store or
18-
nothing.
17+
Plugin to extend every store.
1918

2019
## Parameters
2120

packages/docs/api/pinia/interfaces/SetupStoreDefinition.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ Return type of `defineStore()` with a setup function.
3030

3131
> **SetupStoreDefinition**(`pinia`?, `hot`?): [`Store`](../type-aliases/Store.md)\<`Id`, [`_ExtractStateFromSetupStore`](../type-aliases/ExtractStateFromSetupStore.md)\<`SS`\>, [`_ExtractGettersFromSetupStore`](../type-aliases/ExtractGettersFromSetupStore.md)\<`SS`\>, [`_ExtractActionsFromSetupStore`](../type-aliases/ExtractActionsFromSetupStore.md)\<`SS`\>\>
3232
33-
Returns a store, creates it if necessary.
33+
Return type of `defineStore()` with a setup function.
34+
- `Id` is a string literal of the store's name
35+
- `SS` is the return type of the setup function
3436

3537
## Parameters
3638

@@ -46,6 +48,10 @@ dev only hot module replacement
4648

4749
[`Store`](../type-aliases/Store.md)\<`Id`, [`_ExtractStateFromSetupStore`](../type-aliases/ExtractStateFromSetupStore.md)\<`SS`\>, [`_ExtractGettersFromSetupStore`](../type-aliases/ExtractGettersFromSetupStore.md)\<`SS`\>, [`_ExtractActionsFromSetupStore`](../type-aliases/ExtractActionsFromSetupStore.md)\<`SS`\>\>
4850

51+
## See
52+
53+
[StoreDefinition](StoreDefinition.md)
54+
4955
## Properties
5056

5157
### $id

packages/docs/api/pinia/interfaces/StoreDefinition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Return type of `defineStore()`. Function that allows instantiating a store.
2828

2929
> **StoreDefinition**(`pinia`?, `hot`?): [`Store`](../type-aliases/Store.md)\<`Id`, `S`, `G`, `A`\>
3030
31-
Returns a store, creates it if necessary.
31+
Return type of `defineStore()`. Function that allows instantiating a store.
3232

3333
## Parameters
3434

0 commit comments

Comments
 (0)