@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.
Files changed (2) hide show
  1. package/async-result.d.ts +10 -0
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/std",
3
- "version": "0.22.1",
3
+ "version": "0.23.0",
4
4
  "priority": 8,
5
5
  "description": "Std library for TypeScript. Natural complement to the Tempo libraries.",
6
6
  "keywords": [