From 00b4bc6e598f4ea846041b5e154f2b421bdb23aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn?= Date: Fri, 6 Oct 2017 21:48:16 +0200 Subject: [PATCH] Added missing streaming implementations --- packages/grpc-native-core/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/grpc-native-core/index.d.ts b/packages/grpc-native-core/index.d.ts index 37c6f1ca..f3a091eb 100644 --- a/packages/grpc-native-core/index.d.ts +++ b/packages/grpc-native-core/index.d.ts @@ -1126,7 +1126,7 @@ declare module "grpc" { * A stream that the client can write to. Used for calls that are streaming from * the client side. */ - export class ClientWritableStream { + export class ClientWritableStream extends Writable { private constructor(); /** @@ -1138,7 +1138,7 @@ declare module "grpc" { * @param callback Callback for when this chunk of data is flushed * @return As defined for [Writable]{@link external:Writable} */ - write(message: any, flags: writeFlags, callback: Function): boolean; + write(message: any, flags?: any&writeFlags, callback?: Function): boolean; /** * Cancel the ongoing call. Results in the call ending with a CANCELLED status, @@ -1157,7 +1157,7 @@ declare module "grpc" { * A stream that the client can read from or write to. Used for calls with * duplex streaming. */ - export class ClientDuplexStream { + export class ClientDuplexStream extends Duplex { private constructor(); /** @@ -1169,7 +1169,7 @@ declare module "grpc" { * @param callback Callback for when this chunk of data is flushed * @return As defined for [Writable]{@link external:Writable} */ - write(message: any, flags: writeFlags, callback: Function): boolean; + write(message: any, flags?: any&writeFlags, callback?: Function): boolean; /** * Cancel the ongoing call. Results in the call ending with a CANCELLED status,