diff --git a/packages/grpc-native-core/index.d.ts b/packages/grpc-native-core/index.d.ts index c35b63fa..65d5aee7 100644 --- a/packages/grpc-native-core/index.d.ts +++ b/packages/grpc-native-core/index.d.ts @@ -409,6 +409,16 @@ declare module "grpc" { * with duplex streaming. */ export class ServerDuplexStream extends Duplex { + /** + * Indicates if the call has been cancelled + */ + cancelled: boolean; + + /** + * The request metadata from the client + */ + metadata: Metadata; + private constructor(); /** @@ -1220,7 +1230,7 @@ declare module "grpc" { * @param value The response value, if the call succeeded */ export type requestCallback = - (error: ServiceError | null, value: ResponseType | null) => void; + (error: ServiceError | null, value: ResponseType | undefined) => void; /** * Return the underlying channel object for the specified client