mirror of https://github.com/grpc/grpc-node.git
Merge branch 'master' into typescript_deps
This commit is contained in:
commit
06a04da181
|
|
@ -16,10 +16,10 @@
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/lodash": "^4.14.108",
|
"@types/lodash": "^4.14.108",
|
||||||
"@types/mocha": "^2.2.43",
|
"@types/mocha": "^5.2.6",
|
||||||
"@types/node": "^10.5.4",
|
"@types/node": "^11.13.2",
|
||||||
"clang-format": "^1.0.55",
|
"clang-format": "^1.0.55",
|
||||||
"gts": "^0.5.1",
|
"gts": "^0.9.0",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
"typescript": "~3.3.3333"
|
"typescript": "~3.3.3333"
|
||||||
},
|
},
|
||||||
|
|
@ -42,7 +42,7 @@
|
||||||
"posttest": "npm run check"
|
"posttest": "npm run check"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"semver": "^5.5.0"
|
"semver": "^6.0.0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"build/src/*.{js,d.ts}",
|
"build/src/*.{js,d.ts}",
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,13 @@ import {ChannelCredentials} from './channel-credentials';
|
||||||
import {ChannelOptions} from './channel-options';
|
import {ChannelOptions} from './channel-options';
|
||||||
import {Client} from './client';
|
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> {
|
export interface MethodDefinition<RequestType, ResponseType> {
|
||||||
path: string;
|
path: string;
|
||||||
|
|
|
||||||
|
|
@ -64,6 +64,7 @@ class ClientHttp2StreamMock extends stream.Duplex implements
|
||||||
endAfterHeaders = false;
|
endAfterHeaders = false;
|
||||||
pending = false;
|
pending = false;
|
||||||
rstCode = 0;
|
rstCode = 0;
|
||||||
|
readonly bufferSize: number = 0;
|
||||||
readonly sentHeaders: OutgoingHttpHeaders = {};
|
readonly sentHeaders: OutgoingHttpHeaders = {};
|
||||||
readonly sentInfoHeaders?: OutgoingHttpHeaders[] = [];
|
readonly sentInfoHeaders?: OutgoingHttpHeaders[] = [];
|
||||||
readonly sentTrailers?: OutgoingHttpHeaders = undefined;
|
readonly sentTrailers?: OutgoingHttpHeaders = undefined;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue