@net-vert/core 0.3.8 → 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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -6
  2. 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>>): Promise<R> | R;
121
- post<R = any, D = any>(url: string, data?: D, config?: RequestConfig<D>): Promise<R> | R;
122
- delete<R = any, D = any>(url: string, config?: WithDynamicProps<RequestConfig<D>>): Promise<R>;
123
- put<R = any, D = any>(url: string, data?: D, config?: WithDynamicProps<RequestConfig<D>>): Promise<R> | R;
124
- request<R = any, D = any>(config: WithDynamicProps<UnifiedConfig<D>>): Promise<R> | R;
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>) => Promise<R>;
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@net-vert/core",
3
- "version": "0.3.8",
3
+ "version": "0.4.0",
4
4
  "description": "Dependency Inversion Network Library with Type-Safe Injection.",
5
5
  "main": "dist/index",
6
6
  "type": "module",