Skip to content

Commit 5ce5f56

Browse files
committed
chore: fix lint
1 parent be32399 commit 5ce5f56

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/types/contract/base.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ import {
1010
/**
1111
* The result of a call to a transaction / get function.
1212
*/
13-
export type Result<T, HasTxHash extends boolean = false> = {
14-
data: T
15-
} & (HasTxHash extends true
16-
? { transactionHash: Address }
17-
: Record<string, never>)
13+
export type Result<
14+
T,
15+
HasTxHash extends boolean = false,
16+
> = HasTxHash extends true
17+
? {
18+
data: T
19+
transactionHash: Address
20+
}
21+
: { data: T }
1822

1923
/**
2024
* @description Construct a type with the properties of union type T except for those in type K.

0 commit comments

Comments
 (0)