exupery-core-types 0.2.0 → 0.3.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/dist/Array.d.ts +1 -1
- package/dist/Circular_Dependency.d.ts +8 -0
- package/dist/Dictionary.d.ts +2 -4
- package/dist/Lookup.d.ts +1 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/Computed_Value.d.ts +0 -8
- /package/dist/{Computed_Value.js → Circular_Dependency.js} +0 -0
package/dist/Array.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A circular dependency is a function without parameters returning the specified type
|
|
3
|
+
* it makes it possible to do the evaluation only when the function is called
|
|
4
|
+
* useful for lazy evaluation
|
|
5
|
+
*/
|
|
6
|
+
export type Circular_Dependency<T> = {
|
|
7
|
+
'get circular dependent': () => T;
|
|
8
|
+
};
|
package/dist/Dictionary.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface Dictionary<T> {
|
|
|
19
19
|
* This method is only to be used by resources
|
|
20
20
|
* iterates over all entries in a sorted manner
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
deprecated_to_array(compare: Compare_Function<T>): Array<Key_Value_Pair<T>>;
|
|
23
23
|
/**
|
|
24
24
|
* This method is only to be used by resources
|
|
25
25
|
* returns an {@link Optional_Value } of type T reflecting wether the entry existed or not
|
|
@@ -27,7 +27,5 @@ export interface Dictionary<T> {
|
|
|
27
27
|
* @param key
|
|
28
28
|
*/
|
|
29
29
|
__get_entry(key: string): Optional_Value<T>;
|
|
30
|
-
|
|
31
|
-
__add_entry_overwrite_if_exists(key: string, value: T): Dictionary<T>;
|
|
32
|
-
__remove_entry_if_exists(key: string): Dictionary<T>;
|
|
30
|
+
__get_number_of_entries(): number;
|
|
33
31
|
}
|
package/dist/Lookup.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Optional_Value } from "./Optional_Value";
|
|
2
2
|
/**
|
|
3
3
|
* A lookup is similar to a Dictionary, but much more basic.
|
|
4
|
-
* There
|
|
4
|
+
* There is only 1 operation: __get_entry.
|
|
5
5
|
*/
|
|
6
6
|
export interface Lookup<T> {
|
|
7
7
|
/**
|
|
8
|
-
* This method is only to be used by resources
|
|
9
8
|
* returns an {@link Optional_Value } of type T reflecting wether the entry existed or not
|
|
10
9
|
*
|
|
11
10
|
* @param key
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -15,7 +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("./
|
|
18
|
+
__exportStar(require("./Circular_Dependency"), exports);
|
|
19
19
|
__exportStar(require("./Dictionary"), exports);
|
|
20
20
|
__exportStar(require("./Lookup"), exports);
|
|
21
21
|
__exportStar(require("./Optional_Value"), exports);
|
package/package.json
CHANGED
package/dist/Computed_Value.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A computed value is a function without paramters returning the specified type
|
|
3
|
-
* it makes it possible to do the evaluation only when the function is called
|
|
4
|
-
* useful for lazy evaluation or when side effects are needed
|
|
5
|
-
*/
|
|
6
|
-
export type Computed_Value<T> = {
|
|
7
|
-
'compute': () => T;
|
|
8
|
-
};
|
|
File without changes
|