@wix/sdk-types
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -19,5 +19,5 @@ type HostModule<T, H extends Host> = { | ||
interface HttpClient { | ||
request<T>(req: RequestOptionsFactory<T>): Promise<HttpResponse<T>>; | ||
request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>; | ||
} | ||
type RequestOptionsFactory<T = any> = (context: any) => RequestOptions<T>; | ||
type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>; | ||
type HttpResponse<T = any> = { | ||
@@ -30,3 +30,3 @@ data: T; | ||
}; | ||
type RequestOptions<Data = any> = { | ||
type RequestOptions<_TResponse = any, Data = any> = { | ||
method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS'; | ||
@@ -33,0 +33,0 @@ url: string; |
{ | ||
"name": "@wix/sdk-types", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"license": "UNLICENSED", | ||
@@ -31,3 +31,3 @@ "author": { | ||
"devDependencies": { | ||
"@types/node": "^20.10.0", | ||
"@types/node": "^20.10.2", | ||
"eslint": "^7.32.0", | ||
@@ -61,3 +61,3 @@ "eslint-config-sdk": "0.0.0", | ||
}, | ||
"falconPackageHash": "dc7a23cf9438bfbbcb58bb7f92eaf9275a78f18498ecc02ef185f002" | ||
"falconPackageHash": "eb3b93798a0a2ac170eebe9986f88b44569e779a7c80e605455a6e38" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5810