default: { add: (user: { email: string; password: string }) => Promise<INewUser>; del: (user: { id: string }) => Promise<void>; get: <T extends TUserGet, Key extends TUserGetKey>( id: string, data: T, key?: TUserGetKey, ) => Promise<undefined | IUser<T, Key>>; getAll: <T extends TUserGet>(data: T) => Promise<IUser<T>[]>; getByUsernameAndPassword: ( user: { email: string; password: string }, ) => Promise<undefined | IUserCheck>; update: (user: { id: string }, data: any[]) => Promise<void>;} = ... Type declaration
add: (user: { email: string; password: string }) => Promise<INewUser>
del: (user: { id: string }) => Promise<void>
getAll: <T extends TUserGet>(data: T) => Promise<IUser<T>[]>
getByUsernameAndPassword: (user: { email: string; password: string }) => Promise<undefined | IUserCheck>
update: (user: { id: string }, data: any[]) => Promise<void>