Named and exported rather than written inline on the method, because an
inline union cannot reference typeof this.productQuoteService.quote:
productQuoteService is a private member, private members are emitted
without their types, and the whole union then degrades to unknown in the
.d.ts. skipLibCheck hides that at the producer, so it surfaces only as
result.error is of type unknown in 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.
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.