default: { add: ( userModel: { model: IModel; template: string }, user: { id: string }, ) => Promise<any>; del: (userModel: { id: string }) => Promise<void>; get: <T extends TUserModelGet>( id: string, data: T, ) => Promise<undefined | IUserModel<T>>; update: (UserModel: { id: string }, data: any[]) => Promise<void>;} = ... Type declaration
add: (
userModel: { model: IModel; template: string },
user: { id: string },
) => Promise<any>
del: (userModel: { id: string }) => Promise<void>
get: <T extends TUserModelGet>(
id: string,
data: T,
) => Promise<undefined | IUserModel<T>>
update: (UserModel: { id: string }, data: any[]) => Promise<void>