@tempots/std 0.22.1 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/async-result.d.ts +10 -0
- package/package.json +1 -1
package/async-result.d.ts
CHANGED
|
@@ -44,6 +44,16 @@ export type AsyncFailure<E> = {
|
|
|
44
44
|
* @public
|
|
45
45
|
*/
|
|
46
46
|
export type AsyncResult<V, E> = NotAsked | Loading<V> | AsyncSuccess<V> | AsyncFailure<E>;
|
|
47
|
+
/**
|
|
48
|
+
* Represents a settled state in an asynchronous result.
|
|
49
|
+
* @public
|
|
50
|
+
*/
|
|
51
|
+
export type Settled<V, E> = AsyncSuccess<V> | AsyncFailure<E>;
|
|
52
|
+
/**
|
|
53
|
+
* Represents a state in an asynchronous result that is not loading.
|
|
54
|
+
* @public
|
|
55
|
+
*/
|
|
56
|
+
export type NonLoading<V, E> = NotAsked | Settled<V, E>;
|
|
47
57
|
/**
|
|
48
58
|
* A set of utility functions for working with `AsyncResult`.
|
|
49
59
|
* @public
|