From e859a48538f9560f667bdcf5412f233469511f32 Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 24 Jul 2018 18:16:24 +0200 Subject: [PATCH] stellar-sdk: added record and error data to CallBuilder stream callbacks (#27513) --- types/stellar-sdk/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {