From 42e2671d702c7f2abd555a807737963fe8a57e93 Mon Sep 17 00:00:00 2001 From: Andy Wermke Date: Mon, 29 Apr 2019 18:07:24 +0200 Subject: [PATCH] Add type for LedgerCallBuilder.prototype.ledger() (#273) --- types/index.d.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/types/index.d.ts b/types/index.d.ts index 31ab3ef81..fff20b268 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -470,7 +470,7 @@ export namespace Server { EffectRecord > { forAccount(accountId: string): this; - forLedger(sequence: string): this; + forLedger(sequence: string | number): this; forOperation(operationId: number): this; forTransaction(transactionId: string): this; } @@ -478,7 +478,9 @@ export namespace Server { abstract class LedgerCallBuilder extends CallBuilder< CollectionPage, LedgerRecord - > {} + > { + ledger(sequence: string | number): this; + } abstract class OfferCallBuilder extends CallBuilder< CollectionPage, @@ -490,7 +492,7 @@ export namespace Server { OperationRecord > { forAccount(accountId: string): this; - forLedger(sequence: string): this; + forLedger(sequence: string | number): this; forTransaction(transactionId: string): this; includeFailed(value: boolean): this; operation(operationId: number): this; @@ -505,7 +507,7 @@ export namespace Server { PaymentOperationRecord > { forAccount(accountId: string): this; - forLedger(sequence: string): this; + forLedger(sequence: string | number): this; forTransaction(transactionId: string): this; }