@redhat-cloud-services/javascript-clients-shared
Advanced tools
Comparing version 1.2.4 to 1.2.5
@@ -5,2 +5,4 @@ # Changelog | ||
## [1.2.5](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/javascript-clients-shared-1.2.4...@redhat-cloud-services/javascript-clients-shared-1.2.5) (2024-11-18) | ||
## [1.2.4](https://github.com/RedHatInsights/javascript-clients/compare/@redhat-cloud-services/javascript-clients-shared-1.2.3...@redhat-cloud-services/javascript-clients-shared-1.2.4) (2024-07-04) | ||
@@ -7,0 +9,0 @@ |
import { BaseAPI } from './base'; | ||
import { ActionType, ApiConfig } from './common'; | ||
export declare function APIFactory<T extends Record<string, ActionType>>(basePath: string, actions: T, config?: ApiConfig): BaseAPI & T; | ||
export declare function APIFactory<T extends Record<string, ActionType>>(actions: T, config?: ApiConfig): BaseAPI & T; | ||
export type APIFactoryResponse<J extends Record<string, ActionType>, L extends { | ||
[K in keyof J]: unknown; | ||
}> = { | ||
[K in keyof J]: (...args: J[K] extends (...args: infer A) => any ? A : never) => L[K]; | ||
}; | ||
export declare function APIFactory<T extends Record<string, ActionType>, S extends { | ||
[K in keyof T]: unknown; | ||
}>(basePath: string, actions: T, config?: ApiConfig): BaseAPI & APIFactoryResponse<T, S>; | ||
export declare function APIFactory<T extends Record<string, ActionType>, S extends { | ||
[K in keyof T]: unknown; | ||
}>(actions: T, config?: ApiConfig): BaseAPI & APIFactoryResponse<T, S>; |
{ | ||
"name": "@redhat-cloud-services/javascript-clients-shared", | ||
"version": "1.2.4", | ||
"version": "1.2.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
62863
649