Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 16f75e0

Browse files
authored
[FABN-1504] Type definition improvement (#410)
This patch fixes the type for the "request-timeout" field of the ConnectionOpts interface as well as the documentation. Signed-off-by: Taku Shimosawa <taku.shimosawa@hal.hitachi.com>
1 parent 02fe7d8 commit 16f75e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fabric-client/lib/Client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ const Client = class extends BaseClient {
362362
* @typedef {Object} ConnectionOpts
363363
* @property {string} name - Optional. To gives this remote endpoint a name.
364364
* The endpoint will be known by its URL if no name is provided.
365-
* @property {string} request-timeout - An integer value in milliseconds to
365+
* @property {number} request-timeout - An integer value in milliseconds to
366366
* be used as maximum amount of time to wait on the request to respond.
367367
* @property {string} pem - The certificate file, in PEM format,
368368
* to use with the gRPC protocol (that is, with TransportCredentials).

fabric-client/types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ declare namespace Client { // tslint:disable-line:no-namespace
125125
pem?: string;
126126
clientKey?: string;
127127
clientCert?: string;
128-
'request-timeout'?: string;
128+
'request-timeout'?: number;
129129
'ssl-target-name-override'?: string;
130130
[propName: string]: any;
131131
}

0 commit comments

Comments
 (0)