While using the changes introduced in https://github.com/burner-wallet/burner-wallet-2/pull/24 I found that by not providing explicitly the types to the methods estimateXtoY in Bridge class that extends Pair, the wrong types were generated.
These are the types generated for estimateAtoB and estimateBtoA in Pair.
This produces errors when trying to return string values for estimateInfo in classes that extend Bridge.
Type '(value: ValueTypes) => Promise<EstimateReturn>' is not assignable to type '(value: ValueTypes) => Promise<{ estimate: string; estimateInfo: null; }>'.
To fix this, this PR specifies the returned values types also in Bridge
While using the changes introduced in https://github.com/burner-wallet/burner-wallet-2/pull/24 I found that by not providing explicitly the types to the methods
estimateXtoY
in Bridge class that extends Pair, the wrong types were generated.These are the types generated for
estimateAtoB
andestimateBtoA
inPair
.And these are the generated in
Bridge
This produces errors when trying to return
string
values forestimateInfo
in classes that extendBridge
.To fix this, this PR specifies the returned values types also in
Bridge