diff --git a/types/stellar-sdk/index.d.ts b/types/stellar-sdk/index.d.ts index 2663704322..14d3b1d30e 100644 --- a/types/stellar-sdk/index.d.ts +++ b/types/stellar-sdk/index.d.ts @@ -347,7 +347,7 @@ export namespace StellarBase { } function bumpSequence(options: BumpSequenceOptions): xdr.Operation; - function fromXDRObject(xdrOperation: xdr.Operation): T; + function fromXDRObject(xdrOperation: xdr.Operation): T; } namespace StrKey { @@ -384,7 +384,7 @@ export namespace StellarBase { class TransactionBuilder { constructor(sourceAccount: Account, options?: TransactionBuilder.TransactionBuilderOptions) - addOperation(operation: xdr.Operation): this; + addOperation(operation: xdr.Operation): this; addMemo(memo: Memo): this; build(): Transaction; } @@ -407,8 +407,8 @@ export namespace StellarBase { toXDR(base?: string): Buffer; toXDR(encoding: string): string; } - class Operation extends XDRStruct { - static fromXDR(xdr: Buffer): Operation; + class Operation extends XDRStruct { + static fromXDR(xdr: Buffer): Operation; } class Asset extends XDRStruct { static fromXDR(xdr: Buffer): Asset; @@ -512,7 +512,7 @@ export class Server { } export namespace Server { - abstract class CallBuilder { + abstract class CallBuilder { constructor(serverUrl: string) call(): Promise>; cursor(cursor: string): this; @@ -521,7 +521,7 @@ export namespace Server { stream(options?: { onmessage?: (record: T) => void, onerror?: (error: Error) => void }): () => void; } - interface CollectionPage { + interface CollectionPage { records: T[]; next: () => Promise>; prev: () => Promise>; @@ -539,7 +539,7 @@ export namespace Server { } /* Due to a bug with the recursive function requests */ - interface CollectionRecord { + interface CollectionRecord { _links: { next: RecordLink prev: RecordLink @@ -556,8 +556,8 @@ export namespace Server { order?: 'asc' | 'desc'; } - type CallFunction = () => Promise; - type CallCollectionFunction = + type CallFunction = () => Promise; + type CallCollectionFunction = (options?: CallFunctionTemplateOptions) => Promise>; interface BalanceLineNative {