From a90ae8b8f23e89df9f3bf969d859f1083bfcfc63 Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Sat, 10 Dec 2022 14:31:09 +0100 Subject: [PATCH] fix: allow modelType to be optional string --- src/commondao/common.dao.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commondao/common.dao.ts b/src/commondao/common.dao.ts index 16f1317..a2b90cd 100644 --- a/src/commondao/common.dao.ts +++ b/src/commondao/common.dao.ts @@ -988,7 +988,7 @@ export class CommonDao< validateAndConvert( obj: Partial, schema: ObjectSchemaTyped | AjvSchema | undefined, - modelType: DBModelType, + modelType?: DBModelType | string, opt: CommonDaoOptions = {}, ): OUT { // `raw` option completely bypasses any processing