Skip to content

API Documentation / @pinia/colada / DataState

Type Alias: DataState<TResult, TError, TDataInitial>

ts
type DataState<TResult, TError, TDataInitial> = 
  | DataState_Success<TResult>
  | DataState_Error<TResult, TError, TDataInitial>
| DataState_Pending<TDataInitial>;

Possible states for data based on its status.

Type Parameters

TResult

TResult

TError

TError

TDataInitial

TDataInitial = undefined

Released under the MIT License.