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

Type declaration

  • add: (
        userModel: { model: IModel; template: string },
        user: { id: string },
    ) => Promise<IUserModel>
  • del: (user: { id: string }, userModel: { id: string }) => Promise<void>
  • getWithData: <T extends TUserModelGet>(
        id: string,
        data: T,
    ) => Promise<undefined | IUserModelWithData<T>>
  • update: (userModel: { id: string }, data: any[]) => Promise<void>