@cspell/cspell-service-bus
Advanced tools
Comparing version 6.14.2 to 6.14.3
import { RequestResponseType, ServiceRequest } from './request'; | ||
import { ServiceRequestFactory, ServiceRequestFactoryRequestType } from './ServiceRequestFactory'; | ||
import { Dispatcher } from './Dispatcher'; | ||
export declare type HandleRequestFn<R extends ServiceRequest> = (request: R, next: HandleRequest, dispatch: Dispatcher) => RequestResponseType<R>; | ||
export type HandleRequestFn<R extends ServiceRequest> = (request: R, next: HandleRequest, dispatch: Dispatcher) => RequestResponseType<R>; | ||
export interface HandleRequest { | ||
@@ -11,3 +11,3 @@ <R extends ServiceRequest>(request: R): any; | ||
} | ||
export declare type FactoryRequestHandler<T extends ServiceRequestFactory<ServiceRequest>, R extends ServiceRequest = ServiceRequestFactoryRequestType<T>> = HandleRequestKnown<R>; | ||
export type FactoryRequestHandler<T extends ServiceRequestFactory<ServiceRequest>, R extends ServiceRequest = ServiceRequestFactoryRequestType<T>> = HandleRequestKnown<R>; | ||
export interface HandlerNext { | ||
@@ -14,0 +14,0 @@ (next: HandleRequest): HandleRequest; |
@@ -27,9 +27,9 @@ export interface ServiceRequest<T extends string = string, P = unknown, R = unknown> { | ||
} | ||
export declare type ServiceResponse<T> = ServiceResponseSuccess<T> | ServiceResponseFailure<T>; | ||
export declare type IsARequest<T extends ServiceRequest> = (r: ServiceRequest) => r is T; | ||
export type ServiceResponse<T> = ServiceResponseSuccess<T> | ServiceResponseFailure<T>; | ||
export type IsARequest<T extends ServiceRequest> = (r: ServiceRequest) => r is T; | ||
export declare function createResponse<R extends ServiceRequest, T = RequestResponseType<R>>(value: T, _req?: R): ServiceResponseSuccess<T>; | ||
declare type VT<T> = T extends { | ||
type VT<T> = T extends { | ||
___T?: infer R; | ||
} ? R : never; | ||
export declare type RequestResponseType<T> = T extends { | ||
export type RequestResponseType<T> = T extends { | ||
__r?: infer R; | ||
@@ -36,0 +36,0 @@ } ? R : never; |
@@ -13,5 +13,5 @@ import { Handler, HandleRequestFn } from './handlers'; | ||
} | ||
export declare type ServiceRequestFactoryRequestType<T> = T extends { | ||
export type ServiceRequestFactoryRequestType<T> = T extends { | ||
__request?: infer R; | ||
} ? R : never; | ||
//# sourceMappingURL=ServiceRequestFactory.d.ts.map |
@@ -6,3 +6,3 @@ { | ||
}, | ||
"version": "6.14.2", | ||
"version": "6.14.3", | ||
"description": "A Library for connecting requests to services that can fulfill them.", | ||
@@ -78,3 +78,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "ea9692380357e9e890c20f15b1200cc1c6c3a2df" | ||
"gitHead": "df0efdbb0dc7b084579130ba5fe97441c0ab67ca" | ||
} |
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
25839