export type instead of interface for more succinct syntax

This commit is contained in:
Steve Klebanoff
2019-01-16 09:41:12 -08:00
parent 444250520a
commit a587718443

View File

@@ -80,7 +80,7 @@ export interface BuyQuoteRequestOpts {
*
* shouldForceOrderRefresh: If set to true, new orders and state will be fetched instead of waiting for the next orderRefreshIntervalMs. Defaults to false.
*/
export interface LiquidityRequestOpts extends Pick<BuyQuoteRequestOpts, 'shouldForceOrderRefresh'> {}
export type LiquidityRequestOpts = Pick<BuyQuoteRequestOpts, 'shouldForceOrderRefresh'>;
/**
* ethAmount: The desired amount of eth to spend. Defaults to buyQuote.worstCaseQuoteInfo.totalEthAmount.