pareto-core-interface 0.1.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/algorithm_signatures/Command.d.ts +8 -0
- package/dist/algorithm_signatures/Command.js +3 -0
- package/dist/algorithm_signatures/Deserializer.d.ts +13 -0
- package/dist/algorithm_signatures/Deserializer.js +3 -0
- package/dist/algorithm_signatures/Iterator.d.ts +7 -0
- package/dist/algorithm_signatures/Iterator.js +3 -0
- package/dist/algorithm_signatures/Query.d.ts +3 -0
- package/dist/algorithm_signatures/Query.js +3 -0
- package/dist/algorithm_signatures/Query_Function.d.ts +1 -0
- package/dist/algorithm_signatures/Query_Function.js +3 -0
- package/dist/algorithm_signatures/Query_Result.d.ts +26 -0
- package/dist/algorithm_signatures/Query_Result.js +3 -0
- package/dist/algorithm_signatures/Queryer.d.ts +2 -0
- package/dist/algorithm_signatures/Queryer.js +3 -0
- package/dist/algorithm_signatures/Refinement_Result.d.ts +13 -0
- package/dist/algorithm_signatures/Refinement_Result.js +3 -0
- package/dist/algorithm_signatures/Refiner.d.ts +4 -0
- package/dist/algorithm_signatures/Refiner.js +3 -0
- package/dist/algorithm_signatures/Serializer.d.ts +9 -0
- package/dist/algorithm_signatures/Serializer.js +3 -0
- package/dist/algorithm_signatures/Transformer.d.ts +2 -0
- package/dist/algorithm_signatures/Transformer.js +3 -0
- package/dist/data/Circular_Dependency.d.ts +8 -0
- package/dist/data/Circular_Dependency.js +3 -0
- package/dist/data/Dictionary.d.ts +31 -0
- package/dist/data/Dictionary.js +3 -0
- package/dist/data/List.d.ts +28 -0
- package/dist/data/List.js +3 -0
- package/dist/data/Optional_Value.d.ts +19 -0
- package/dist/data/Optional_Value.js +3 -0
- package/dist/globals.d.ts +20 -0
- package/dist/globals.js +2 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +32 -0
- package/package.json +25 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Transformer } from "./Transformer";
|
|
2
|
+
export type Command_Procedure<Command, Command_Resources, Query_Resources> = ($c: Command_Resources, $q: Query_Resources) => Command;
|
|
3
|
+
export type Command<Error, Parameters> = {
|
|
4
|
+
'execute': <Target_Error>(parameters: Parameters, error_transformer: Transformer<Error, Target_Error>) => Command_Promise<Target_Error>;
|
|
5
|
+
};
|
|
6
|
+
export type Command_Promise<Error> = {
|
|
7
|
+
__start: (on_success: () => void, on_error: (error: Error) => void) => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hbGdvcml0aG1fc2lnbmF0dXJlcy9Db21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Refiner, Refiner_With_Parameters, Refiner_Without_Error, Refiner_Without_Error_With_Parameters } from "./Refiner";
|
|
2
|
+
export type Deserializer_With_Parameters<Result, Error, Parameters> = Refiner_With_Parameters<Result, Error, string, Parameters>;
|
|
3
|
+
export type Deserializer<Result, Error> = Refiner<Result, Error, string>;
|
|
4
|
+
export type Deserializer_Without_Error<Result> = Refiner_Without_Error<Result, string>;
|
|
5
|
+
export type Deserializer_Without_Error_With_Parameters<Result, Parameters> = Refiner_Without_Error_With_Parameters<Result, string, Parameters>;
|
|
6
|
+
export type Number_Deserializer<Error> = Deserializer<number, Error>;
|
|
7
|
+
export type Number_Deserializer_With_Parameters<Error, Parameters> = Deserializer_With_Parameters<number, Error, Parameters>;
|
|
8
|
+
export type Number_Deserializer_Without_Error<Parameters> = Deserializer_With_Parameters<number, never, Parameters>;
|
|
9
|
+
export type Number_Deserializer_Without_Error_With_Parameters<Parameters> = Deserializer_Without_Error_With_Parameters<number, Parameters>;
|
|
10
|
+
export type Boolean_Deserializer<Error> = Deserializer<boolean, Error>;
|
|
11
|
+
export type Boolean_Deserializer_With_Parameters<Error, Parameters> = Deserializer_With_Parameters<boolean, Error, Parameters>;
|
|
12
|
+
export type Boolean_Deserializer_Without_Error<Parameters> = Deserializer_With_Parameters<boolean, never, Parameters>;
|
|
13
|
+
export type Boolean_Deserializer_Without_Error_With_Parameters<Parameters> = Deserializer_Without_Error_With_Parameters<boolean, Parameters>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVzZXJpYWxpemVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FsZ29yaXRobV9zaWduYXR1cmVzL0Rlc2VyaWFsaXplci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSXRlcmF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWxnb3JpdGhtX3NpZ25hdHVyZXMvSXRlcmF0b3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWxnb3JpdGhtX3NpZ25hdHVyZXMvUXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Query_Function<Query, Query_Resources> = ($q: Query_Resources) => Query;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnlfRnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWxnb3JpdGhtX3NpZ25hdHVyZXMvUXVlcnlfRnVuY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Queryer } from "./Queryer";
|
|
2
|
+
import { Deprecated_Refiner_Catcher } from "./Refinement_Result";
|
|
3
|
+
import { Transformer } from "./Transformer";
|
|
4
|
+
export interface Query_Result<Output, Error> {
|
|
5
|
+
query_result: null;
|
|
6
|
+
transform_result<New_Output>(transformer: Transformer<Output, New_Output>): Query_Result<New_Output, Error>;
|
|
7
|
+
deprecated_transform_error<New_Error>(error_transformer: Transformer<Error, New_Error>): Query_Result<Output, New_Error>;
|
|
8
|
+
query_without_error_transformation<New_Output>(query: Queryer<New_Output, Error, Output>): Query_Result<New_Output, Error>;
|
|
9
|
+
query<New_Output, Query_Error>(query: Queryer<New_Output, Query_Error, Output>,
|
|
10
|
+
/**
|
|
11
|
+
* if the query fails, rework its error into the desired error type
|
|
12
|
+
*/
|
|
13
|
+
error_transformer: Transformer<Query_Error, Error>): Query_Result<New_Output, Error>;
|
|
14
|
+
deprecated_refine_old_without_error_transformation<New_Output>(refiner: Deprecated_Refiner_Catcher<New_Output, Error, Output>): Query_Result<New_Output, Error>;
|
|
15
|
+
deprecated_refine_old<New_Output, Refiner_Error>(refiner: Deprecated_Refiner_Catcher<New_Output, Refiner_Error, Output>,
|
|
16
|
+
/**
|
|
17
|
+
* if the refiner fails, rework its error into the desired error type
|
|
18
|
+
*/
|
|
19
|
+
error_transformer: Transformer<Refiner_Error, Error>): Query_Result<New_Output, Error>;
|
|
20
|
+
rework_error_temp<New_Error, Rework_Error>(error_reworker: Queryer<New_Error, Rework_Error, Error>,
|
|
21
|
+
/**
|
|
22
|
+
* if the reworker fails, we need to transform *that* error into the New_Error
|
|
23
|
+
*/
|
|
24
|
+
rework_error_transformer: Transformer<Rework_Error, New_Error>): Query_Result<Output, New_Error>;
|
|
25
|
+
__extract_data: (on_success: ($: Output) => void, on_error: ($: Error) => void) => void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnlfUmVzdWx0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2FsZ29yaXRobV9zaWduYXR1cmVzL1F1ZXJ5X1Jlc3VsdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnllci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hbGdvcml0aG1fc2lnbmF0dXJlcy9RdWVyeWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Transformer } from "./Transformer";
|
|
2
|
+
export interface Refinement_Result<Output, Error> {
|
|
3
|
+
transform<Target>(output_transformer: Transformer<Output, Target>, error_transformer: Transformer<Error, Target>): Target;
|
|
4
|
+
transform_result<New_Output>(transformer: Transformer<Output, New_Output>): Refinement_Result<New_Output, Error>;
|
|
5
|
+
deprecated_transform_error<New_Error>(error_transformer: Transformer<Error, New_Error>): Refinement_Result<Output, New_Error>;
|
|
6
|
+
deprecated_refine_old<New_Output, Refiner_Error>(refiner: Deprecated_Refiner_Catcher<New_Output, Refiner_Error, Output>,
|
|
7
|
+
/**
|
|
8
|
+
* if the refiner fails, rework its error into the desired error type
|
|
9
|
+
*/
|
|
10
|
+
error_transformer: Transformer<Refiner_Error, Error>): Refinement_Result<New_Output, Error>;
|
|
11
|
+
__extract_data: (on_success: ($: Output) => void, on_error: ($: Error) => void) => void;
|
|
12
|
+
}
|
|
13
|
+
export type Deprecated_Refiner_Catcher<Result, Error, Input> = ($: Input) => Refinement_Result<Result, Error>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVmaW5lbWVudF9SZXN1bHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWxnb3JpdGhtX3NpZ25hdHVyZXMvUmVmaW5lbWVudF9SZXN1bHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type Refiner_With_Parameters<Result, Error, Input, Parameters> = ($: Input, $p: Parameters, abort: ($: Error) => never) => Result;
|
|
2
|
+
export type Refiner<Result, Error, Input> = ($: Input, abort: ($: Error) => never) => Result;
|
|
3
|
+
export type Refiner_Without_Error<Result, Input> = ($: Input) => Result;
|
|
4
|
+
export type Refiner_Without_Error_With_Parameters<Result, Input, Parameters> = ($: Input, $p: Parameters) => Result;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVmaW5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hbGdvcml0aG1fc2lnbmF0dXJlcy9SZWZpbmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Transformer, Transformer_With_Parameters } from "./Transformer";
|
|
2
|
+
export type Serializer<Input> = Transformer<Input, string>;
|
|
3
|
+
export type Serializer_With_Parameters<Input, Parameters> = Transformer_With_Parameters<Input, string, Parameters>;
|
|
4
|
+
export type Number_Serializer = Serializer<number>;
|
|
5
|
+
export type Number_Serializer_With_Parameters<Parameters> = Serializer_With_Parameters<number, Parameters>;
|
|
6
|
+
export type Boolean_Serializer = Serializer<boolean>;
|
|
7
|
+
export type Boolean_Serializer_With_Parameters<Parameters> = Serializer_With_Parameters<boolean, Parameters>;
|
|
8
|
+
export type Text_Serializer = Serializer<string>;
|
|
9
|
+
export type Text_Serializer_With_Parameters<Parameters> = Serializer_With_Parameters<string, Parameters>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VyaWFsaXplci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9hbGdvcml0aG1fc2lnbmF0dXJlcy9TZXJpYWxpemVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiVHJhbnNmb3JtZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWxnb3JpdGhtX3NpZ25hdHVyZXMvVHJhbnNmb3JtZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2lyY3VsYXJfRGVwZW5kZW5jeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kYXRhL0NpcmN1bGFyX0RlcGVuZGVuY3kudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { List } from "./List";
|
|
2
|
+
import { Optional_Value } from "./Optional_Value";
|
|
3
|
+
export type Key_Value_Pair<T> = {
|
|
4
|
+
readonly 'key': string;
|
|
5
|
+
readonly 'value': T;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* A dictionary for Pareto.
|
|
9
|
+
* unmutable and minimal by design
|
|
10
|
+
*/
|
|
11
|
+
export interface Dictionary<T> {
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @param handle_entry callback to transform an individual entry. keys are not available.
|
|
15
|
+
*/
|
|
16
|
+
map<NT>(handle_entry: (value: T, key: string) => NT): Dictionary<NT>;
|
|
17
|
+
/**
|
|
18
|
+
* the ordering of the list will be the same as the insertion order in the dictionary
|
|
19
|
+
*/
|
|
20
|
+
to_list<New_Type>(handle_entry: (value: T, key: string) => New_Type): List<New_Type>;
|
|
21
|
+
/**
|
|
22
|
+
* This method is only to be used by resources
|
|
23
|
+
* returns an {@link Optional_Value } of type T reflecting wether the entry existed or not
|
|
24
|
+
*
|
|
25
|
+
* @param key
|
|
26
|
+
*/
|
|
27
|
+
get_entry(key: string): Optional_Value<T>;
|
|
28
|
+
get_number_of_entries(): number;
|
|
29
|
+
filter<New_Type>(handle_entry: (value: T, key: string) => Optional_Value<New_Type>): Dictionary<New_Type>;
|
|
30
|
+
is_empty(): boolean;
|
|
31
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGljdGlvbmFyeS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kYXRhL0RpY3Rpb25hcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Optional_Value } from "./Optional_Value";
|
|
2
|
+
/**
|
|
3
|
+
* An List for Pareto.
|
|
4
|
+
* unmutable and minimal by design
|
|
5
|
+
*/
|
|
6
|
+
export interface List<T> {
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
* @param handle_element callback to transform an individual entry.
|
|
10
|
+
*/
|
|
11
|
+
map<NT>(handle_element: ($: T) => NT): List<NT>;
|
|
12
|
+
filter<New_Type>(handle_element: ($: T) => Optional_Value<New_Type>): List<New_Type>;
|
|
13
|
+
get_number_of_elements(): number;
|
|
14
|
+
is_empty(): boolean;
|
|
15
|
+
append_element(new_element: T): List<T>;
|
|
16
|
+
prepend_element(new_element: T): List<T>;
|
|
17
|
+
reverse(): List<T>;
|
|
18
|
+
flatten<New_Type>(handle_element: ($: T) => List<New_Type>): List<New_Type>;
|
|
19
|
+
__get_element_at(index: number): Optional_Value<T>;
|
|
20
|
+
__get_raw_copy(): readonly T[];
|
|
21
|
+
/**
|
|
22
|
+
* This method is only to be used by resources
|
|
23
|
+
* iterates over all entries
|
|
24
|
+
*
|
|
25
|
+
* @param $handle_value callback to process the entry
|
|
26
|
+
*/
|
|
27
|
+
__for_each(handle_element: ($: T) => void): void;
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why this type and not use for example 'null | T'?
|
|
3
|
+
* the 'null | T' is vulnerable. If you have a parametrized function 'foo<T>() null | T' and T is null | number,
|
|
4
|
+
* you cannot discern if a return value is null because of the function or because of the data
|
|
5
|
+
* this 'Optional_Value' type makes it possible to have recursive optional types like this: Optional_Value<Optional_Value<number>>
|
|
6
|
+
*/
|
|
7
|
+
export interface Optional_Value<T> {
|
|
8
|
+
/**
|
|
9
|
+
* @param set what to do when the value was set, returns the new type
|
|
10
|
+
* @param not_set what to do when the value was not set, returns the new type
|
|
11
|
+
*/
|
|
12
|
+
transform<NT>(set: ($: T) => NT, not_set: () => NT): NT;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
map<NT>(//this one should be called 'map'
|
|
17
|
+
set: ($: T) => NT): Optional_Value<NT>;
|
|
18
|
+
is_set(): boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiT3B0aW9uYWxfVmFsdWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvZGF0YS9PcHRpb25hbF9WYWx1ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
interface Array<T> {
|
|
2
|
+
}
|
|
3
|
+
interface Boolean {
|
|
4
|
+
}
|
|
5
|
+
interface CallableFunction {
|
|
6
|
+
}
|
|
7
|
+
interface Function {
|
|
8
|
+
}
|
|
9
|
+
interface IArguments {
|
|
10
|
+
}
|
|
11
|
+
interface NewableFunction {
|
|
12
|
+
}
|
|
13
|
+
interface Number {
|
|
14
|
+
}
|
|
15
|
+
interface Object {
|
|
16
|
+
}
|
|
17
|
+
interface RegExp {
|
|
18
|
+
}
|
|
19
|
+
interface String {
|
|
20
|
+
}
|
package/dist/globals.js
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./data/List";
|
|
2
|
+
export * from "./data/Circular_Dependency";
|
|
3
|
+
export * from "./data/Dictionary";
|
|
4
|
+
export * from "./data/Optional_Value";
|
|
5
|
+
export * from "./algorithm_signatures/Command";
|
|
6
|
+
export * from "./algorithm_signatures/Iterator";
|
|
7
|
+
export * from "./algorithm_signatures/Query_Function";
|
|
8
|
+
export * from "./algorithm_signatures/Query_Result";
|
|
9
|
+
export * from "./algorithm_signatures/Query";
|
|
10
|
+
export * from "./algorithm_signatures/Queryer";
|
|
11
|
+
export * from "./algorithm_signatures/Refinement_Result";
|
|
12
|
+
export * from "./algorithm_signatures/Refiner";
|
|
13
|
+
export * from "./algorithm_signatures/Transformer";
|
|
14
|
+
export * from "./algorithm_signatures/Serializer";
|
|
15
|
+
export * from "./algorithm_signatures/Deserializer";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./data/List"), exports);
|
|
18
|
+
__exportStar(require("./data/Circular_Dependency"), exports);
|
|
19
|
+
__exportStar(require("./data/Dictionary"), exports);
|
|
20
|
+
__exportStar(require("./data/Optional_Value"), exports);
|
|
21
|
+
__exportStar(require("./algorithm_signatures/Command"), exports);
|
|
22
|
+
__exportStar(require("./algorithm_signatures/Iterator"), exports);
|
|
23
|
+
__exportStar(require("./algorithm_signatures/Query_Function"), exports);
|
|
24
|
+
__exportStar(require("./algorithm_signatures/Query_Result"), exports);
|
|
25
|
+
__exportStar(require("./algorithm_signatures/Query"), exports);
|
|
26
|
+
__exportStar(require("./algorithm_signatures/Queryer"), exports);
|
|
27
|
+
__exportStar(require("./algorithm_signatures/Refinement_Result"), exports);
|
|
28
|
+
__exportStar(require("./algorithm_signatures/Refiner"), exports);
|
|
29
|
+
__exportStar(require("./algorithm_signatures/Transformer"), exports);
|
|
30
|
+
__exportStar(require("./algorithm_signatures/Serializer"), exports);
|
|
31
|
+
__exportStar(require("./algorithm_signatures/Deserializer"), exports);
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLDhDQUEyQjtBQUMzQiw2REFBMEM7QUFDMUMsb0RBQWlDO0FBQ2pDLHdEQUFxQztBQUVyQyxpRUFBOEM7QUFDOUMsa0VBQStDO0FBQy9DLHdFQUFxRDtBQUNyRCxzRUFBbUQ7QUFDbkQsK0RBQTRDO0FBQzVDLGlFQUE4QztBQUM5QywyRUFBd0Q7QUFDeEQsaUVBQThDO0FBQzlDLHFFQUFrRDtBQUNsRCxvRUFBaUQ7QUFDakQsc0VBQW1EIn0=
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pareto-core-interface",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"author": "Corno",
|
|
6
|
+
"description": "core types needed to define an interface in the Pareto language",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"pareto",
|
|
9
|
+
"interface",
|
|
10
|
+
"data types",
|
|
11
|
+
"signatures"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/corno/pareto-core-interface#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/corno/pareto-core/issues"
|
|
16
|
+
},
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/corno/pareto-core-interface.git"
|
|
24
|
+
}
|
|
25
|
+
}
|