fix(core): update
This commit is contained in:
parent
c4c612f3a9
commit
03656f4ca0
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user