Skip to content

Commit

Permalink
Fix typo in native types file
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Jul 16, 2019
1 parent 201dab7 commit 0dc0b68
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/grpc-native-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,13 @@ declare module "grpc" {
* User provided method to handle server streaming methods on the server.
*/
type handleServerStreamingCall<RequestType, ResponseType> =
(call: ServerWriteableStream<RequestType>) => void;
(call: ServerWritableStream<RequestType>) => void;

/**
* A stream that the server can write to. Used for calls that are streaming
* from the server side.
*/
export class ServerWriteableStream<RequestType> extends Writable {
export class ServerWritableStream<RequestType> extends Writable {
/**
* Indicates if the call has been cancelled
*/
Expand Down Expand Up @@ -449,6 +449,10 @@ declare module "grpc" {
sendMetadata(responseMetadata: Metadata): void;
}

/* This typo existed in previous versions of this file, so we provide this
* type alias for backwards compatibility. */
export type ServerWriteableStream<RequestType> = ServerWritableStream<RequestType>;

/**
* User provided method to handle bidirectional streaming calls on the server.
*/
Expand Down

0 comments on commit 0dc0b68

Please sign in to comment.