Type Alias LedgerAccountTransferCreateError
LedgerAccountTransferCreateError:
| ServiceError<
"ENTITY_INACTIVE"
| "ENTITY_NOT_FOUND"
| "INVALID_TRANSFER",
>
| ServiceError<"INVALID_LEDGER_ACCOUNT", { ledgerAccountId: string }>
| ServiceError<
"INSUFFICIENT_FUNDS",
{ balance: LedgerAccountTransferAmount },
>
| ErrorReturnedBy<ProductQuoteService["quote"]>
Errors returned by LedgerAccountTransferService.create.
Named and exported rather than written inline on the method, because an inline union cannot reference
typeof this.productQuoteService.quote:productQuoteServiceis a private member, private members are emitted without their types, and the whole union then degrades tounknownin the.d.ts.skipLibCheckhides that at the producer, so it surfaces only asresult.error is of type unknownin every consumer — silently defeating the exhaustiveness checks the API controllers depend on. Referencing the injected service's exported type instead keeps the union nameable in declaration output.