Skip to content

API DocumentationDocs


API Documentation / pinia / StoreState

Type Alias: StoreState<SS>

StoreState<SS>: SS extends Store<string, infer S, _GettersTree<StateTree>, _ActionsTree> ? UnwrapRef<S> : _ExtractStateFromSetupStore<SS>

Extract the state of a store type. Works with both a Setup Store or an Options Store. Note this unwraps refs.

Type Parameters

SS

Released under the MIT License.