fix(core): update

This commit is contained in:
Philipp Kunz 2021-09-19 17:05:08 +02:00
parent c4c612f3a9
commit 03656f4ca0

View File

@ -45,8 +45,8 @@ export interface IManager {
db: SmartdataDb
}
export const setDefaultManagerForDoc = (managerArg: IManager, dbDocArg: any) => {
dbDocArg.prototype.defaultManager = managerArg;
export const setDefaultManagerForDoc = <T>(managerArg: IManager, dbDocArg: T): T => {
(dbDocArg as any).prototype.defaultManager = managerArg;
return dbDocArg;
}