@wix/sdk-types
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -1,16 +0,6 @@ | ||
type HostModule<T, H extends Host> = { | ||
type HostModule<T, Host> = { | ||
__type: 'host'; | ||
create(host: H): T; | ||
create(host: Host): T; | ||
}; | ||
type HostModuleAPI<T extends HostModule<any, any>> = T extends HostModule<infer U, any> ? U : never; | ||
type Host<Environment = unknown> = { | ||
channel: { | ||
observeEnvironment(callback: (environment: Environment) => unknown): { | ||
disconnect: () => void; | ||
} | Promise<{ | ||
disconnect: () => void; | ||
}>; | ||
}; | ||
environment?: Environment; | ||
}; | ||
@@ -48,2 +38,2 @@ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T; | ||
export { APIMetadata, AuthenticationStrategy, BuildRESTFunction, Host, HostModule, HostModuleAPI, HttpClient, HttpResponse, RESTFunctionDescriptor, RequestOptions, RequestOptionsFactory }; | ||
export { APIMetadata, AuthenticationStrategy, BuildRESTFunction, HostModule, HostModuleAPI, HttpClient, HttpResponse, RESTFunctionDescriptor, RequestOptions, RequestOptionsFactory }; |
{ | ||
"name": "@wix/sdk-types", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"license": "UNLICENSED", | ||
@@ -63,3 +63,3 @@ "author": { | ||
}, | ||
"falconPackageHash": "1e79ae8d7f89805c873eb1606053cfd1112b4534b1e82e16092ad6fb" | ||
"falconPackageHash": "8ea0320b2888cd72b852723e943a71978440a9104bdf2f2791253c9a" | ||
} |
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
4734
51