@naturalcycles/db-lib 8.50.1 → 8.50.2

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.
@@ -137,7 +137,7 @@ export declare class CommonDao<BM extends ObjectWithId<ID>, DBM extends ObjectWi
137
137
  *
138
138
  * Does NOT mutate the object.
139
139
  */
140
- validateAndConvert<IN, OUT = IN>(obj: Partial<IN>, schema: ObjectSchemaTyped<IN> | AjvSchema<IN> | undefined, modelType: DBModelType, opt?: CommonDaoOptions): OUT;
140
+ validateAndConvert<IN, OUT = IN>(obj: Partial<IN>, schema: ObjectSchemaTyped<IN> | AjvSchema<IN> | undefined, modelType?: DBModelType | string, opt?: CommonDaoOptions): OUT;
141
141
  getTableSchema(): Promise<JsonSchemaRootObject<DBM>>;
142
142
  createTable(schema: JsonSchemaObject<DBM>, opt?: CommonDaoCreateOptions): Promise<void>;
143
143
  /**
package/package.json CHANGED
@@ -41,7 +41,7 @@
41
41
  "engines": {
42
42
  "node": ">=14.15"
43
43
  },
44
- "version": "8.50.1",
44
+ "version": "8.50.2",
45
45
  "description": "Lowest Common Denominator API to supported Databases",
46
46
  "keywords": [
47
47
  "db",
@@ -988,7 +988,7 @@ export class CommonDao<
988
988
  validateAndConvert<IN, OUT = IN>(
989
989
  obj: Partial<IN>,
990
990
  schema: ObjectSchemaTyped<IN> | AjvSchema<IN> | undefined,
991
- modelType: DBModelType,
991
+ modelType?: DBModelType | string,
992
992
  opt: CommonDaoOptions = {},
993
993
  ): OUT {
994
994
  // `raw` option completely bypasses any processing