@chainlink/external-adapter-framework 0.10.2 → 0.10.3
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/adapter/types.d.ts +2 -2
- package/package.json +1 -1
package/adapter/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Cache } from '../cache';
|
|
|
4
4
|
import { AdapterConfig, BaseAdapterConfig, SettingsMap } from '../config';
|
|
5
5
|
import { AdapterRateLimitTier, BackgroundExecuteRateLimiter, RequestRateLimiter } from '../rate-limiting';
|
|
6
6
|
import { Transport, TransportGenerics } from '../transports';
|
|
7
|
-
import { AdapterRequest, SubscriptionSetFactory } from '../util';
|
|
7
|
+
import { AdapterRequest, RequestGenerics, SubscriptionSetFactory } from '../util';
|
|
8
8
|
import { InputParameters } from '../validation';
|
|
9
9
|
import { Adapter } from './basic';
|
|
10
10
|
import { AdapterEndpoint } from './endpoint';
|
|
@@ -51,7 +51,7 @@ export interface AdapterRateLimitingConfig {
|
|
|
51
51
|
/**
|
|
52
52
|
* Type to perform arbitrary modifications on an adapter request
|
|
53
53
|
*/
|
|
54
|
-
export declare type RequestTransform = (req: AdapterRequest) => void;
|
|
54
|
+
export declare type RequestTransform<T extends RequestGenerics = RequestGenerics> = (req: AdapterRequest<T>) => void;
|
|
55
55
|
/**
|
|
56
56
|
* Map of overrides objects (symbol -\> symbol) per adapter name
|
|
57
57
|
*/
|