diff --git a/app/src/data/fields/Field.ts b/app/src/data/fields/Field.ts index b5e332d..5260d61 100644 --- a/app/src/data/fields/Field.ts +++ b/app/src/data/fields/Field.ts @@ -236,8 +236,8 @@ export abstract class Field< toJSON() { return { - //name: this.name, - type: this.type, + // @todo: current workaround because of fixed string type + type: this.type as any, config: this.config }; } diff --git a/app/src/modules/ModuleManager.ts b/app/src/modules/ModuleManager.ts index f0c4013..e43dfa7 100644 --- a/app/src/modules/ModuleManager.ts +++ b/app/src/modules/ModuleManager.ts @@ -56,12 +56,13 @@ export type ModuleSchemas = { export type ModuleConfigs = { [K in keyof ModuleSchemas]: Static; }; +type PartialRec = { [P in keyof T]?: PartialRec }; export type InitialModuleConfigs = | ({ version: number; } & ModuleConfigs) - | Partial; + | PartialRec; export type ModuleManagerOptions = { initial?: InitialModuleConfigs;