@net-vert/core 0.3.9 → 0.4.0
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 +6 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -117,11 +117,11 @@ export declare const requestExtender: {
|
|
|
117
117
|
};
|
|
118
118
|
|
|
119
119
|
export declare interface Requestor {
|
|
120
|
-
get<R = any, D = any>(url: string, config?: WithDynamicProps<RequestConfig<D>>):
|
|
121
|
-
post<R = any, D = any>(url: string, data?: D, config?: RequestConfig<D>):
|
|
122
|
-
delete<R = any, D = any>(url: string, config?: WithDynamicProps<RequestConfig<D>>):
|
|
123
|
-
put<R = any, D = any>(url: string, data?: D, config?: WithDynamicProps<RequestConfig<D>>):
|
|
124
|
-
request<R = any, D = any>(config: WithDynamicProps<UnifiedConfig<D>>):
|
|
120
|
+
get<R = any, D = any>(url: string, config?: WithDynamicProps<RequestConfig<D>>): R;
|
|
121
|
+
post<R = any, D = any>(url: string, data?: D, config?: RequestConfig<D>): R;
|
|
122
|
+
delete<R = any, D = any>(url: string, config?: WithDynamicProps<RequestConfig<D>>): R;
|
|
123
|
+
put<R = any, D = any>(url: string, data?: D, config?: WithDynamicProps<RequestConfig<D>>): R;
|
|
124
|
+
request<R = any, D = any>(config: WithDynamicProps<UnifiedConfig<D>>): R;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
declare type RetryOptions = {
|
|
@@ -145,7 +145,7 @@ export declare type UnifiedConfig<D = any> = RequestConfig<D> & {
|
|
|
145
145
|
method: Exclude<keyof Requestor, "request">;
|
|
146
146
|
};
|
|
147
147
|
|
|
148
|
-
export declare type UnifiedRequestor = <R = any, D = any>(config: UnifiedConfig<D>) =>
|
|
148
|
+
export declare type UnifiedRequestor = <R = any, D = any>(config: UnifiedConfig<D>) => R;
|
|
149
149
|
|
|
150
150
|
export declare const useRequestor: (instanceKey?: string) => Requestor;
|
|
151
151
|
|