separate types

This commit is contained in:
Oli Sturm
2026-04-24 18:15:22 +01:00
parent b1ac745d70
commit d0c9466170
13 changed files with 178 additions and 221 deletions
+11
View File
@@ -0,0 +1,11 @@
import { Result } from '../library/result.js';
import { Repository, AppError } from '../infrastructure/repository.js';
import { Account, AccountError } from '../domain/account.js';
export type AccountResult = Result<Account, AccountError>;
export type WithdrawMoneyFn = (accountId: string, amount: number) => AccountResult;
export type CreateWithdrawMoneyResult = Result<WithdrawMoneyFn, AppError>;
export declare const createWithdrawMoney: (repo: Repository) => CreateWithdrawMoneyResult;