Skip to content

Commit

Permalink
Add type for LedgerCallBuilder.prototype.ledger() (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
andywer authored and Morley Zhi committed Apr 29, 2019
1 parent 92bf693 commit 42e2671
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -470,15 +470,17 @@ 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;
}

abstract class LedgerCallBuilder extends CallBuilder<
CollectionPage<LedgerRecord>,
LedgerRecord
> {}
> {
ledger(sequence: string | number): this;
}

abstract class OfferCallBuilder extends CallBuilder<
CollectionPage<OfferRecord>,
Expand All @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 42e2671

Please sign in to comment.