Merge branch 'master' into typescript_deps

This commit is contained in:
murgatroid99 2019-04-10 11:06:58 -07:00
commit 06a04da181
3 changed files with 11 additions and 6 deletions

View File

@ -16,10 +16,10 @@
"license": "Apache-2.0",
"devDependencies": {
"@types/lodash": "^4.14.108",
"@types/mocha": "^2.2.43",
"@types/node": "^10.5.4",
"@types/mocha": "^5.2.6",
"@types/node": "^11.13.2",
"clang-format": "^1.0.55",
"gts": "^0.5.1",
"gts": "^0.9.0",
"lodash": "^4.17.4",
"typescript": "~3.3.3333"
},
@ -42,7 +42,7 @@
"posttest": "npm run check"
},
"dependencies": {
"semver": "^5.5.0"
"semver": "^6.0.0"
},
"files": [
"build/src/*.{js,d.ts}",

View File

@ -19,9 +19,13 @@ import {ChannelCredentials} from './channel-credentials';
import {ChannelOptions} from './channel-options';
import {Client} from './client';
export interface Serialize<T> { (value: T): Buffer; }
export interface Serialize<T> {
(value: T): Buffer;
}
export interface Deserialize<T> { (bytes: Buffer): T; }
export interface Deserialize<T> {
(bytes: Buffer): T;
}
export interface MethodDefinition<RequestType, ResponseType> {
path: string;

View File

@ -64,6 +64,7 @@ class ClientHttp2StreamMock extends stream.Duplex implements
endAfterHeaders = false;
pending = false;
rstCode = 0;
readonly bufferSize: number = 0;
readonly sentHeaders: OutgoingHttpHeaders = {};
readonly sentInfoHeaders?: OutgoingHttpHeaders[] = [];
readonly sentTrailers?: OutgoingHttpHeaders = undefined;