exupery-core-types 0.1.4 → 0.1.6

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/dist/Array.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { Async_Value } from "./Async_Value";
2
- import { Unsafe_Async_Value } from "./Unsafe_Async_Value";
3
1
  import { Optional_Value } from "./Optional_Value";
4
2
  /**
5
3
  * A Exupery array.
@@ -11,12 +9,6 @@ export interface Array<T> {
11
9
  * @param handle_value callback to transform an individual entry.
12
10
  */
13
11
  map<NT>(handle_value: ($: T) => NT): Array<NT>;
14
- /**
15
- * maps the array to {@link Async_Value} that contains an array
16
- * @param handle_value callback that provides an async value. keys are not available.
17
- */
18
- map_async<NT>(handle_value: ($: T) => Async_Value<NT>): Async_Value<Array<NT>>;
19
- map_async_unsafe<NT, NE>(handle_value: ($: T) => Unsafe_Async_Value<NT, NE>): Unsafe_Async_Value<Array<NT>, Array<NE>>;
20
12
  /**
21
13
  * This method is only to be used by resources
22
14
  * iterates over all entries
@@ -1,6 +1,4 @@
1
1
  import { Array } from "./Array";
2
- import { Async_Value } from "./Async_Value";
3
- import { Unsafe_Async_Value } from "./Unsafe_Async_Value";
4
2
  import { Optional_Value } from "./Optional_Value";
5
3
  export type Key_Value_Pair<T> = {
6
4
  readonly 'key': string;
@@ -17,12 +15,6 @@ export interface Dictionary<T> {
17
15
  * @param handle_value callback to transform an individual entry. keys are not available.
18
16
  */
19
17
  map<NT>(handle_value: ($: T, key: string) => NT): Dictionary<NT>;
20
- /**
21
- *
22
- * @param handle_value callback that provides an {@link Async_Value}. keys are not available.
23
- */
24
- map_async<NT>(handle_value: ($: T) => Async_Value<NT>): Async_Value<Dictionary<NT>>;
25
- map_async_unsafe<NT, NE>(handle_value: ($: T) => Unsafe_Async_Value<NT, NE>): Unsafe_Async_Value<Dictionary<NT>, Dictionary<NE>>;
26
18
  /**
27
19
  * This method is only to be used by resources
28
20
  * iterates over all entries in a sorted manner
package/dist/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  export * from "./Array";
2
- export * from "./Async_Value";
3
2
  export * from "./Computed_Value";
4
3
  export * from "./Dictionary";
5
4
  export * from "./Lookup";
6
5
  export * from "./Optional_Value";
7
- export * from "./Unsafe_Async_Value";
package/dist/index.js CHANGED
@@ -15,9 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Array"), exports);
18
- __exportStar(require("./Async_Value"), exports);
19
18
  __exportStar(require("./Computed_Value"), exports);
20
19
  __exportStar(require("./Dictionary"), exports);
21
20
  __exportStar(require("./Lookup"), exports);
22
21
  __exportStar(require("./Optional_Value"), exports);
23
- __exportStar(require("./Unsafe_Async_Value"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-types",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "core types for Exupery",
@@ -1,16 +0,0 @@
1
- /**
2
- * A value that will asynchronously become available.
3
- * Similar to the concept of a promise, but with a smaller API.
4
- */
5
- export interface Async_Value<T> {
6
- map<NT>(handle_value: ($: T) => NT): Async_Value<NT>;
7
- /**
8
- * maps the current async value into a new async value
9
- * @param handle_value callback that transforms the actual value into a new Async_Value
10
- */
11
- then<NT>(handle_value: ($: T) => Async_Value<NT>): Async_Value<NT>;
12
- /**
13
- * This method is only to be used by resources
14
- */
15
- __start(on_value: ($: T) => void): void;
16
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +0,0 @@
1
- import { Async_Value } from "./Async_Value";
2
- export interface Unsafe_Async_Value<T, E> {
3
- map<NT>($v: ($: T) => NT): Unsafe_Async_Value<NT, E>;
4
- map_exception<NE>($e: ($: E) => NE): Unsafe_Async_Value<T, NE>;
5
- then<NT>($v: ($: T) => Unsafe_Async_Value<NT, E>): Unsafe_Async_Value<NT, E>;
6
- if_exception_then<NE>(handle_exception: ($: E) => Unsafe_Async_Value<T, NE>): Unsafe_Async_Value<T, NE>;
7
- catch($e: ($: E) => T): Async_Value<T>;
8
- catch_and_map<NT>($v: ($: T) => NT, $e: ($: E) => NT): Async_Value<NT>;
9
- __start($i: ($: T) => void, $e: ($: E) => void): void;
10
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });