Skip to content

Commit fc32346

Browse files
mbwhiteshimos
andauthored
[FABCN-430] Fix type for timestamp.second (#194) (#209)
This patch fixes the type definition for the second field in the Timestamp, which is actually Long (int64). Signed-off-by: Taku Shimosawa <taku.shimosawa@hal.hitachi.com> Co-authored-by: Matthew B White <mbwhite@users.noreply.github.com> Co-authored-by: Taku Shimosawa <taku.shimosawa@hal.hitachi.com>
1 parent 85188f5 commit fc32346

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

apis/fabric-shim-api/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@
2222
"eslint": "6.6.0"
2323
},
2424
"types": "./types/index.d.ts",
25-
"license": "Apache-2.0"
26-
}
25+
"license": "Apache-2.0",
26+
"devDependencies": {
27+
"@types/long": "^4.0.1"
28+
}
29+
}

apis/fabric-shim-api/types/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
66
*/
77
declare module 'fabric-shim-api' {
8+
import Long = require("long");
89

910
interface Timestamp {
10-
seconds: number;
11+
seconds: Long;
1112
nanos: number;
1213
}
1314

common/config/rush/pnpm-lock.yaml

Lines changed: 13 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)