[`_MapActionsObjectReturn`](../type-aliases/MapActionsObjectReturn.md)\<`A`, `KeyMapper`\>
+### Param
+
+store to map from
+
+### Param
+
+array or object
+
### Example
```js
[`_MapActionsReturn`](../type-aliases/MapActionsReturn.md)\<`A`\>
+### Param
+
+store to map from
+
+### Param
+
+array or object
+
### Example
```js
[`_MapStateObjectReturn`](../type-aliases/MapStateObjectReturn.md)\<`Id`, `S`, `G`, `A`, `KeyMapper`\>
+### Deprecated
+
+use `mapState()` instead.
+
### Example
```js
[`_MapStateReturn`](../type-aliases/MapStateReturn.md)\<`S`, `G`, `Keys`\>
+### Deprecated
+
+use `mapState()` instead.
+
### Example
```js
[`_MapStateObjectReturn`](../type-aliases/MapStateObjectReturn.md)\<`Id`, `S`, `G`, `A`, `KeyMapper`\>
+### Param
+
+store to map from
+
+### Param
+
+array or object
+
### Example
```js
[`_MapStateReturn`](../type-aliases/MapStateReturn.md)\<`S`, `G`, `Keys`\>
+### Param
+
+store to map from
+
+### Param
+
+array or object
+
### Example
```js
[`_MapWritableStateObjectReturn`](../type-aliases/MapWritableStateObjectReturn.md)\<`S`, `KeyMapper`\>
+### Param
+
+store to map from
+
+### Param
+
+array or object
+
## mapWritableState(useStore, keys)
> **mapWritableState**\<`Id`, `S`, `G`, `A`, `Keys`\>(`useStore`, `keys`): `{ [K in Keys]: Object }`
### Returns
`{ [K in Keys]: Object }`
+
+### Param
+
+store to map from
+
+### Param
+
+array or object
[`Pinia`](../interfaces/Pinia.md)
+### Param
+
+Pinia instance
+
## setActivePinia(pinia)
> **setActivePinia**(`pinia`): `undefined`
`undefined`
+### Param
+
+Pinia instance
+
## setActivePinia(pinia)
> **setActivePinia**(`pinia`): `undefined` \| [`Pinia`](../interfaces/Pinia.md)
### Returns
`undefined` \| [`Pinia`](../interfaces/Pinia.md)
+
+### Param
+
+Pinia instance
`void`
-#### Inherited from
-
-`Omit.hydrate`
-
#### Example
If in your `state`, you use any `customRef`s, any `computed`s, or any `ref`s that have a different value on
}
})
```
+
+#### Inherited from
+
+`Omit.hydrate`
> **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)\>\>
-Plugin to extend every store. Returns an object to extend the store or
-nothing.
+Plugin to extend every store.
## Parameters
> **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`\>\>
-Returns a store, creates it if necessary.
+Return type of `defineStore()` with a setup function.
+- `Id` is a string literal of the store's name
+- `SS` is the return type of the setup function
## Parameters
[`Store`](../type-aliases/Store.md)\<`Id`, [`_ExtractStateFromSetupStore`](../type-aliases/ExtractStateFromSetupStore.md)\<`SS`\>, [`_ExtractGettersFromSetupStore`](../type-aliases/ExtractGettersFromSetupStore.md)\<`SS`\>, [`_ExtractActionsFromSetupStore`](../type-aliases/ExtractActionsFromSetupStore.md)\<`SS`\>\>
+## See
+
+[StoreDefinition](StoreDefinition.md)
+
## Properties
### $id
> **StoreDefinition**(`pinia`?, `hot`?): [`Store`](../type-aliases/Store.md)\<`Id`, `S`, `G`, `A`\>
-Returns a store, creates it if necessary.
+Return type of `defineStore()`. Function that allows instantiating a store.
## Parameters