@scalecube/api
Advanced tools
Comparing version 0.0.2-alpha.11 to 0.0.2-alpha.12
@@ -8,3 +8,3 @@ export { AsyncModel, RequestResponseAsyncModel, RequestStreamAsyncModel } from './AsyncModel'; | ||
export { ServiceDefinition } from './ServiceDefinition'; | ||
export { ServiceReference } from './ServiceReference'; | ||
export { ServiceReference, ServiceFactoryOptions, ServiceFactory, ServiceObject } from './ServiceReference'; | ||
export { Qualifier } from './Qualifier'; | ||
@@ -11,0 +11,0 @@ export { Endpoint } from './Endpoint'; |
@@ -18,3 +18,3 @@ import { Address } from '../index'; | ||
*/ | ||
destroy: () => Promise<string>; | ||
destroy: () => Promise<any>; | ||
/** | ||
@@ -21,0 +21,0 @@ * @method createProxies |
@@ -0,1 +1,3 @@ | ||
import { CreateProxy } from './CreateProxy'; | ||
import { CreateServiceCall } from './CreateServiceCall'; | ||
/** | ||
@@ -5,5 +7,11 @@ * @interface ServiceReference | ||
*/ | ||
export interface ServiceReference { | ||
export declare type ServiceReference = ServiceFactory | ServiceObject; | ||
export declare type ServiceFactory = ({ createProxy, createServiceCall }: ServiceFactoryOptions) => ServiceObject; | ||
export interface ServiceObject { | ||
constructor?: any; | ||
[methodName: string]: any; | ||
} | ||
export interface ServiceFactoryOptions { | ||
createProxy: CreateProxy; | ||
createServiceCall: CreateServiceCall; | ||
} |
@@ -8,3 +8,3 @@ export { AsyncModel, RequestResponseAsyncModel, RequestStreamAsyncModel } from './AsyncModel'; | ||
export { ServiceDefinition } from './ServiceDefinition'; | ||
export { ServiceReference } from './ServiceReference'; | ||
export { ServiceReference, ServiceFactoryOptions, ServiceFactory, ServiceObject } from './ServiceReference'; | ||
export { Qualifier } from './Qualifier'; | ||
@@ -11,0 +11,0 @@ export { Endpoint } from './Endpoint'; |
@@ -18,3 +18,3 @@ import { Address } from '../index'; | ||
*/ | ||
destroy: () => Promise<string>; | ||
destroy: () => Promise<any>; | ||
/** | ||
@@ -21,0 +21,0 @@ * @method createProxies |
@@ -0,1 +1,3 @@ | ||
import { CreateProxy } from './CreateProxy'; | ||
import { CreateServiceCall } from './CreateServiceCall'; | ||
/** | ||
@@ -5,5 +7,11 @@ * @interface ServiceReference | ||
*/ | ||
export interface ServiceReference { | ||
export declare type ServiceReference = ServiceFactory | ServiceObject; | ||
export declare type ServiceFactory = ({ createProxy, createServiceCall }: ServiceFactoryOptions) => ServiceObject; | ||
export interface ServiceObject { | ||
constructor?: any; | ||
[methodName: string]: any; | ||
} | ||
export interface ServiceFactoryOptions { | ||
createProxy: CreateProxy; | ||
createServiceCall: CreateServiceCall; | ||
} |
{ | ||
"name": "@scalecube/api", | ||
"version": "0.0.2-alpha.11", | ||
"version": "0.0.2-alpha.12", | ||
"private": false, | ||
@@ -32,3 +32,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "6829d9aa611c108ebd3bd7bc79df1679a9a39965" | ||
"gitHead": "fd9a16bd0b91a9f33c45df2aefaab15cb1147c05" | ||
} |
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
54781
1387