diff --git a/types/stellar-sdk/index.d.ts b/types/stellar-sdk/index.d.ts index bc2a113334..d07309eae5 100644 --- a/types/stellar-sdk/index.d.ts +++ b/types/stellar-sdk/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Carl Foster // Triston Jones // Paul Selden +// Max Bause // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 @@ -21,7 +22,7 @@ export class CallBuilder { cursor(cursor: string): this; limit(limit: number): this; order(direction: 'asc' | 'desc'): this; - stream(options?: { onmessage?: () => void, onerror?: () => void }): () => void; + stream(options?: { onmessage?: (record: T) => void, onerror?: (error: Error) => void }): () => void; } export interface CollectionPage {