Skip to content

Commit e5a191b

Browse files
committed
Fix error TS2339: Property 'valueBuffer' does not exist on type 'OpenOutput'
Add optional types for each union member
1 parent 41bf2cd commit e5a191b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

types/transaction.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
export interface BlankOutput {
22
script: Buffer;
33
valueBuffer: Buffer;
4+
value?: any;
45
}
56
export interface Output {
67
script: Buffer;
78
value: number;
9+
valueBuffer?: any;
810
}
911
declare type OpenOutput = Output | BlankOutput;
1012
export interface Input {

0 commit comments

Comments
 (0)