@cowprotocol/widget-lib 0.11.1 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/flexibleConfig.d.ts +6 -0
- package/index.d.ts +1 -0
- package/index.iife.js +91 -1
- package/index.js +91 -1
- package/index.mjs +102106 -163
- package/package.json +1 -1
- package/types.d.ts +14 -6
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FlexibleConfig, PerNetworkConfig, PerTradeTypeConfig, TradeType } from './types';
|
|
2
|
+
import { SupportedChainId } from '@cowprotocol/cow-sdk';
|
|
3
|
+
|
|
4
|
+
export declare function resolveFlexibleConfig<T extends string | number>(config: FlexibleConfig<T>, chainId: SupportedChainId, tradeType: TradeType): T | undefined;
|
|
5
|
+
export declare function isPerTradeTypeConfig<T>(config: FlexibleConfig<T>): config is PerTradeTypeConfig<T>;
|
|
6
|
+
export declare function isPerNetworkConfig<T>(config: FlexibleConfig<T>): config is PerNetworkConfig<T>;
|
package/index.d.ts
CHANGED