Skip to content

Commit

Permalink
Merge pull request #102 from Exabyte-io/chore/SOF-7209
Browse files Browse the repository at this point in the history
SOF-7209: new ts config + re-export mathjs types
  • Loading branch information
k0stik authored Jun 4, 2024
2 parents 447c8a0 + 27ad871 commit 602f02f
Show file tree
Hide file tree
Showing 24 changed files with 464 additions and 441 deletions.
4 changes: 1 addition & 3 deletions dist/js/entity/in_memory.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
import { JSONSchema } from "@mat3ra/esse/dist/js/esse/utils";
import { EntityReferenceSchema } from "@mat3ra/esse/dist/js/types";
export declare enum ValidationErrorCode {
IN_MEMORY_ENTITY_DATA_INVALID = "IN_MEMORY_ENTITY_DATA_INVALID"
}
export interface AnyObject {
[key: string]: unknown;
}
interface ErrorDetails {
error?: object | null;
json: AnyObject;
Expand Down
3 changes: 2 additions & 1 deletion dist/js/entity/mixins/context.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { AnyObject, InMemoryEntityConstructor } from "../in_memory";
import { AnyObject } from "@mat3ra/esse/dist/js/esse/types";
import { InMemoryEntityConstructor } from "../in_memory";
export type Context = AnyObject;
export declare function ContextAndRenderFieldsMixin<T extends InMemoryEntityConstructor>(superclass: T): {
new (...params: any[]): {
Expand Down
10 changes: 5 additions & 5 deletions dist/js/entity/mixins/context_runtime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ export declare function RuntimeContextFieldMixin<T extends InMemoryEntityConstru
toJSON(exclude?: string[]): {
runtimeContext: {};
};
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand Down
24 changes: 12 additions & 12 deletions dist/js/entity/mixins/flowchart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ export declare function FlowchartItemMixin<T extends InMemoryEntityConstructor>(
readonly flowchartId: string;
head: boolean;
next: string | undefined;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand All @@ -37,18 +37,18 @@ export declare function FlowchartEntityMixin<T extends InMemoryEntityConstructor
replaceUnit(unit: UnitEntity, index: number): void;
getUnit(flowchartId: string): UnitEntity | undefined;
getUnitIndexByFlowchartId(flowchartId: string): number;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand Down
24 changes: 12 additions & 12 deletions dist/js/entity/mixins/hash.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ export declare function HashedEntityMixin<T extends InMemoryEntityConstructor>(s
* head and next are also important but not considered since they are included in subworkflow hash.
*/
calculateHash(): string;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand All @@ -35,18 +35,18 @@ export declare function HashedInputArrayMixin<T extends InMemoryEntityConstructo
new (...args: any[]): {
input: ExecutionUnitInputItemSchemaForPhysicsBasedSimulationEngines[];
readonly hashFromArrayInputContent: string;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand Down
84 changes: 42 additions & 42 deletions dist/js/entity/mixins/props.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ import { InMemoryEntityConstructor } from "../in_memory";
export declare function DefaultableMixin<T extends InMemoryEntityConstructor>(superclass: T): {
new (...args: any[]): {
readonly isDefault: boolean;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand All @@ -30,18 +30,18 @@ export declare function TaggableMixin<T extends InMemoryEntityConstructor>(super
new (...args: any[]): {
tags: string[];
setTags(array: string[]): void;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand All @@ -55,18 +55,18 @@ export declare function TaggableMixin<T extends InMemoryEntityConstructor>(super
export declare function HasScopeTrackMixin<T extends InMemoryEntityConstructor>(superclass: T): {
new (...args: any[]): {
scopeTrack: unknown[];
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand All @@ -81,18 +81,18 @@ export declare function HasMetadataMixin<T extends InMemoryEntityConstructor>(su
new (...args: any[]): {
metadata: object;
updateMetadata(object: object): void;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand All @@ -107,18 +107,18 @@ export declare function HasDescriptionMixin<T extends InMemoryEntityConstructor>
new (...args: any[]): {
description: string;
descriptionObject: {} | undefined;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand All @@ -133,18 +133,18 @@ export declare function NamedEntityMixin<T extends InMemoryEntityConstructor>(su
new (...args: any[]): {
name: string;
setName(name: string): void;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand All @@ -159,18 +159,18 @@ export declare function HasConsistencyChecksMixin<T extends InMemoryEntityConstr
new (...args: any[]): {
consistencyChecks: object[];
addConsistencyChecks(array: object[]): void;
_json: import("../in_memory").AnyObject;
_json: import("@mat3ra/esse/dist/js/esse/types").AnyObject;
prop<T_1 = undefined>(name: string, defaultValue: T_1): T_1;
prop<T_2 = undefined>(name: string): T_2 | undefined;
setProp(name: string, value: unknown): void;
unsetProp(name: string): void;
setProps(json?: import("../in_memory").AnyObject): any;
toJSON(exclude?: string[]): import("../in_memory").AnyObject;
toJSONSafe(exclude?: string[]): import("../in_memory").AnyObject;
toJSONQuick(exclude?: string[]): import("../in_memory").AnyObject;
setProps(json?: import("@mat3ra/esse/dist/js/esse/types").AnyObject): any;
toJSON(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONSafe(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
toJSONQuick(exclude?: string[]): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
clone(extraContext?: object | undefined): any;
validate(): void;
clean(config: import("../in_memory").AnyObject): import("../in_memory").AnyObject;
clean(config: import("@mat3ra/esse/dist/js/esse/types").AnyObject): import("@mat3ra/esse/dist/js/esse/types").AnyObject;
isValid(): boolean;
id: string;
readonly cls: string;
Expand Down
Loading

0 comments on commit 602f02f

Please sign in to comment.