RestorableOperationState type

Type of a restorable long-running operation.

type RestorableOperationState<TResult, T> = T & { config: OperationConfig }