docs/types/StateContainer.md
# StateContainer
A StateContainer is what's passed to [`createContext()`](/api/createContext.md). This is either an [Observable](/types/Observable.md) or a [StoreApi](/api/StoreApi.md) constructor with an observable `store` instance property.
## Definition
```typescript
type StateContainer<TState> = Observable<TState>
| StoreApiConstructor<TState>
```
See the [Observable](/types/Observable.md) and [StoreApiConstructor](/types/StoreApiConstructor.md) types.