@altostra/core
Version:
Core library for shared types and logic
14 lines (13 loc) • 635 B
TypeScript
import type { Maybe } from "../../../common/Maybe";
import type { JwtValidationResult } from "../../../jwt";
import type { IUsersRepository, UserInfo } from "../../Domain/Interfaces/IUsersRepository";
import type { Owner } from "../../Domain/Models/Owner";
import { User } from "../../Domain/Models/Owner";
/**
* This is an empty implementation for using in tests and when an
* actual users repository is not needed but required as dependency.
*/
export declare class EmptyUsersRepository implements IUsersRepository {
getUserInfo(user: User): Promise<Maybe<UserInfo>>;
getOwner(jwt: JwtValidationResult): Promise<Owner>;
}