From 1bdff4c806c1c0df746f03aaf9e1428da2858f6b Mon Sep 17 00:00:00 2001 From: Peter Flockhart <412265+p-flock@users.noreply.github.com> Date: Thu, 24 Aug 2023 11:44:45 -0400 Subject: [PATCH] Correct Client.stream return type: from EventEmitter to ResultStream The client implementation of the `stream` method returns a `ResultStream`. This commit corrects the type listed in the index.ts file to line up with the implementation --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index cf44d76e9..9e1ab6de7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -94,7 +94,7 @@ export class Client extends events.EventEmitter { eachRow(query: string, rowCallback: (n: number, row: types.Row) => void): void; - stream(query: string, params?: ArrayOrObject, options?: QueryOptions, callback?: EmptyCallback): events.EventEmitter; + stream(query: string, params?: ArrayOrObject, options?: QueryOptions, callback?: EmptyCallback): types.ResultStream; batch( queries: Array, @@ -411,4 +411,4 @@ export namespace token { unwrap(): TokenRange[]; } -} \ No newline at end of file +}