@qlover/fe-corekit 1.4.0 → 1.4.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/dist/index.d.ts +12 -12
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1770,9 +1770,9 @@ declare abstract class RequestManager<Config extends RequestAdapterConfig> {
|
|
|
1770
1770
|
* getConfig(): any {
|
|
1771
1771
|
* return this.config;
|
|
1772
1772
|
* }
|
|
1773
|
-
* async request<
|
|
1773
|
+
* async request<Response, Request>(
|
|
1774
1774
|
* config: any
|
|
1775
|
-
* ): Promise<RequestAdapterResponse<
|
|
1775
|
+
* ): Promise<RequestAdapterResponse<Request, Response>> {
|
|
1776
1776
|
* const sendConfig = { ...this.config, ...config };
|
|
1777
1777
|
* await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
1778
1778
|
*
|
|
@@ -1811,70 +1811,70 @@ declare class RequestScheduler<Config extends RequestAdapterConfig> extends Requ
|
|
|
1811
1811
|
* @param config - The configuration for the request.
|
|
1812
1812
|
* @returns A promise that resolves to the response of the request.
|
|
1813
1813
|
*/
|
|
1814
|
-
request<
|
|
1814
|
+
request<Response, Request>(config: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1815
1815
|
/**
|
|
1816
1816
|
* Executes a GET request.
|
|
1817
1817
|
*
|
|
1818
1818
|
* @param config - The configuration for the GET request.
|
|
1819
1819
|
* @returns A promise that resolves to the response of the GET request.
|
|
1820
1820
|
*/
|
|
1821
|
-
get<
|
|
1821
|
+
get<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1822
1822
|
/**
|
|
1823
1823
|
* Executes a POST request.
|
|
1824
1824
|
*
|
|
1825
1825
|
* @param config - The configuration for the POST request.
|
|
1826
1826
|
* @returns A promise that resolves to the response of the POST request.
|
|
1827
1827
|
*/
|
|
1828
|
-
post<
|
|
1828
|
+
post<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1829
1829
|
/**
|
|
1830
1830
|
* Executes a PUT request.
|
|
1831
1831
|
*
|
|
1832
1832
|
* @param config - The configuration for the PUT request.
|
|
1833
1833
|
* @returns A promise that resolves to the response of the PUT request.
|
|
1834
1834
|
*/
|
|
1835
|
-
put<
|
|
1835
|
+
put<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1836
1836
|
/**
|
|
1837
1837
|
* Executes a DELETE request.
|
|
1838
1838
|
*
|
|
1839
1839
|
* @param config - The configuration for the DELETE request.
|
|
1840
1840
|
* @returns A promise that resolves to the response of the DELETE request.
|
|
1841
1841
|
*/
|
|
1842
|
-
delete<
|
|
1842
|
+
delete<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1843
1843
|
/**
|
|
1844
1844
|
* Executes a PATCH request.
|
|
1845
1845
|
*
|
|
1846
1846
|
* @param config - The configuration for the PATCH request.
|
|
1847
1847
|
* @returns A promise that resolves to the response of the PATCH request.
|
|
1848
1848
|
*/
|
|
1849
|
-
patch<
|
|
1849
|
+
patch<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1850
1850
|
/**
|
|
1851
1851
|
* Executes a HEAD request.
|
|
1852
1852
|
*
|
|
1853
1853
|
* @param config - The configuration for the HEAD request.
|
|
1854
1854
|
* @returns A promise that resolves to the response of the HEAD request.
|
|
1855
1855
|
*/
|
|
1856
|
-
head<
|
|
1856
|
+
head<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1857
1857
|
/**
|
|
1858
1858
|
* Executes an OPTIONS request.
|
|
1859
1859
|
*
|
|
1860
1860
|
* @param config - The configuration for the OPTIONS request.
|
|
1861
1861
|
* @returns A promise that resolves to the response of the OPTIONS request.
|
|
1862
1862
|
*/
|
|
1863
|
-
options<
|
|
1863
|
+
options<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Executes a TRACE request.
|
|
1866
1866
|
*
|
|
1867
1867
|
* @param config - The configuration for the TRACE request.
|
|
1868
1868
|
* @returns A promise that resolves to the response of the TRACE request.
|
|
1869
1869
|
*/
|
|
1870
|
-
trace<
|
|
1870
|
+
trace<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1871
1871
|
/**
|
|
1872
1872
|
* Executes a CONNECT request.
|
|
1873
1873
|
*
|
|
1874
1874
|
* @param config - The configuration for the CONNECT request.
|
|
1875
1875
|
* @returns A promise that resolves to the response of the CONNECT request.
|
|
1876
1876
|
*/
|
|
1877
|
-
connect<
|
|
1877
|
+
connect<Response, Request>(url: string, config?: RequestAdapterConfig<Request>): Promise<RequestAdapterResponse<Request, Response>>;
|
|
1878
1878
|
}
|
|
1879
1879
|
|
|
1880
1880
|
/**
|