fix(core): update
This commit is contained in:
parent
c4c612f3a9
commit
03656f4ca0
@ -45,8 +45,8 @@ export interface IManager {
|
|||||||
db: SmartdataDb
|
db: SmartdataDb
|
||||||
}
|
}
|
||||||
|
|
||||||
export const setDefaultManagerForDoc = (managerArg: IManager, dbDocArg: any) => {
|
export const setDefaultManagerForDoc = <T>(managerArg: IManager, dbDocArg: T): T => {
|
||||||
dbDocArg.prototype.defaultManager = managerArg;
|
(dbDocArg as any).prototype.defaultManager = managerArg;
|
||||||
return dbDocArg;
|
return dbDocArg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user