File tree Expand file tree Collapse file tree 8 files changed +20
-0
lines changed
Expand file tree Collapse file tree 8 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,14 @@ import { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
22import { type DefaultableInMemoryEntityConstructor } from "@mat3ra/code/dist/js/entity/mixins/DefaultableMixin" ;
33import { type NamedInMemoryEntityConstructor } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin" ;
44import type { Constructor } from "@mat3ra/code/dist/js/utils/types" ;
5+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types" ;
56import type { ApplicationSchema } from "@mat3ra/esse/dist/js/types" ;
67import { type ApplicationMixin , type ApplicationStaticMixin } from "./applicationMixin" ;
78type Base = typeof InMemoryEntity & NamedInMemoryEntityConstructor & DefaultableInMemoryEntityConstructor & Constructor < ApplicationMixin > & ApplicationStaticMixin ;
89declare const Application_base : Base ;
910export default class Application extends Application_base implements ApplicationSchema {
1011 constructor ( data ?: Partial < ApplicationSchema > ) ;
1112 static createDefault : ( ) => Application ;
13+ toJSON : ( ) => ApplicationSchema & AnyObject ;
1214}
1315export { } ;
Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ import { type DefaultableInMemoryEntityConstructor } from "@mat3ra/code/dist/js/
33import { type NamedInMemoryEntityConstructor } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin" ;
44import { type RuntimeItemsInMemoryEntityConstructor } from "@mat3ra/code/dist/js/entity/mixins/RuntimeItemsMixin" ;
55import type { Constructor } from "@mat3ra/code/dist/js/utils/types" ;
6+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types" ;
67import type { ExecutableSchema } from "@mat3ra/esse/dist/js/types" ;
78import { type ExecutableMixin } from "./executableMixin" ;
89type Base = Constructor < ExecutableMixin > & RuntimeItemsInMemoryEntityConstructor & NamedInMemoryEntityConstructor & DefaultableInMemoryEntityConstructor & typeof InMemoryEntity ;
910declare const Executable_base : Base ;
1011export default class Executable extends Executable_base implements ExecutableSchema {
1112 constructor ( data ?: Partial < ExecutableSchema > ) ;
1213 static createDefault : ( ) => Executable ;
14+ toJSON : ( ) => ExecutableSchema & AnyObject ;
1315}
1416export { } ;
Original file line number Diff line number Diff line change @@ -3,12 +3,14 @@ import { type DefaultableInMemoryEntityConstructor } from "@mat3ra/code/dist/js/
33import { NamedInMemoryEntityConstructor } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin" ;
44import { type RuntimeItemsInMemoryEntityConstructor } from "@mat3ra/code/dist/js/entity/mixins/RuntimeItemsMixin" ;
55import type { Constructor } from "@mat3ra/code/dist/js/utils/types" ;
6+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types" ;
67import type { FlavorSchema } from "@mat3ra/esse/dist/js/types" ;
78import { type FlavorMixin } from "./flavorMixin" ;
89type Base = typeof InMemoryEntity & Constructor < FlavorMixin > & RuntimeItemsInMemoryEntityConstructor & NamedInMemoryEntityConstructor & DefaultableInMemoryEntityConstructor ;
910declare const Flavor_base : Base ;
1011export default class Flavor extends Flavor_base implements FlavorSchema {
1112 constructor ( data ?: Partial < FlavorSchema > ) ;
1213 static createDefault : ( ) => Flavor ;
14+ toJSON : ( ) => FlavorSchema & AnyObject ;
1315}
1416export { } ;
Original file line number Diff line number Diff line change 11import { InMemoryEntity } from "@mat3ra/code/dist/js/entity" ;
22import { type NamedInMemoryEntityConstructor } from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin" ;
33import type { Constructor } from "@mat3ra/code/dist/js/utils/types" ;
4+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types" ;
45import type { TemplateSchema } from "@mat3ra/esse/dist/js/types" ;
56import { type TemplateMixin , type TemplateStaticMixin } from "./templateMixin" ;
67type Base = typeof InMemoryEntity & Constructor < TemplateMixin > & NamedInMemoryEntityConstructor & TemplateStaticMixin ;
78declare const Template_base : Base ;
89export default class Template extends Template_base implements TemplateSchema {
910 constructor ( data ?: Partial < TemplateSchema > ) ;
11+ toJSON : ( ) => TemplateSchema & AnyObject ;
1012}
1113export { } ;
Original file line number Diff line number Diff line change 88 namedEntityMixin ,
99} from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin" ;
1010import type { Constructor } from "@mat3ra/code/dist/js/utils/types" ;
11+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types" ;
1112import type { ApplicationSchema } from "@mat3ra/esse/dist/js/types" ;
1213
1314import {
@@ -30,6 +31,8 @@ export default class Application extends (InMemoryEntity as Base) implements App
3031 }
3132
3233 declare static createDefault : ( ) => Application ;
34+
35+ declare toJSON : ( ) => ApplicationSchema & AnyObject ;
3336}
3437
3538namedEntityMixin ( Application . prototype ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 runtimeItemsMixin ,
1313} from "@mat3ra/code/dist/js/entity/mixins/RuntimeItemsMixin" ;
1414import type { Constructor } from "@mat3ra/code/dist/js/utils/types" ;
15+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types" ;
1516import type { ExecutableSchema } from "@mat3ra/esse/dist/js/types" ;
1617
1718import { type ExecutableMixin , executableMixin } from "./executableMixin" ;
@@ -35,6 +36,8 @@ export default class Executable extends (InMemoryEntity as Base) implements Exec
3536 }
3637
3738 declare static createDefault : ( ) => Executable ;
39+
40+ declare toJSON : ( ) => ExecutableSchema & AnyObject ;
3841}
3942
4043namedEntityMixin ( Executable . prototype ) ;
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 runtimeItemsMixin ,
1313} from "@mat3ra/code/dist/js/entity/mixins/RuntimeItemsMixin" ;
1414import type { Constructor } from "@mat3ra/code/dist/js/utils/types" ;
15+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types" ;
1516import type { FlavorSchema } from "@mat3ra/esse/dist/js/types" ;
1617
1718import { type FlavorMixin , flavorMixin } from "./flavorMixin" ;
@@ -38,6 +39,8 @@ export default class Flavor extends (InMemoryEntity as Base) implements FlavorSc
3839 }
3940
4041 declare static createDefault : ( ) => Flavor ;
42+
43+ declare toJSON : ( ) => FlavorSchema & AnyObject ;
4144}
4245
4346namedEntityMixin ( Flavor . prototype ) ;
Original file line number Diff line number Diff line change 44 namedEntityMixin ,
55} from "@mat3ra/code/dist/js/entity/mixins/NamedEntityMixin" ;
66import type { Constructor } from "@mat3ra/code/dist/js/utils/types" ;
7+ import type { AnyObject } from "@mat3ra/esse/dist/js/esse/types" ;
78import type { TemplateSchema } from "@mat3ra/esse/dist/js/types" ;
89
910import { type TemplateMixin , type TemplateStaticMixin , templateMixin } from "./templateMixin" ;
@@ -23,6 +24,8 @@ export default class Template extends (InMemoryEntity as Base) implements Templa
2324 ...data ,
2425 } ) ;
2526 }
27+
28+ declare toJSON : ( ) => TemplateSchema & AnyObject ;
2629}
2730
2831namedEntityMixin ( Template . prototype ) ;
You can’t perform that action at this time.
0 commit comments