Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
sabineschaller committed Aug 23, 2023
1 parent 66e4ae9 commit 299b556
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/open-payments/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,16 @@ export type Quote = RSComponents['schemas']['quote']
type QuoteArgsBase = {
receiver: RSOperations['create-quote']['requestBody']['content']['application/json']['receiver']
}
type QuoteArgsWithSendAmount = QuoteArgsBase & {
sendAmount?: RSComponents['schemas']['quote']['maxSendAmount']
type QuoteArgsWithDebitAmount = QuoteArgsBase & {
debitAmount?: RSComponents['schemas']['quote']['debitAmount']
receiveAmount?: never
}
type QuoteArgsWithReceiveAmount = QuoteArgsBase & {
sendAmount?: never
debitAmount?: never
receiveAmount?: RSComponents['schemas']['quote']['receiveAmount']
}
export type CreateQuoteArgs =
| QuoteArgsWithSendAmount
| QuoteArgsWithDebitAmount
| QuoteArgsWithReceiveAmount

export const getASPath = <P extends keyof ASPaths>(path: P): string =>
Expand Down

0 comments on commit 299b556

Please sign in to comment.