@sigodenjs/dee-srv
Advanced tools
Comparing version 0.16.4 to 0.17.0
@@ -5,6 +5,9 @@ export interface ServiceGroup extends SrvExt.ServiceGroup { | ||
export interface SrvContext { | ||
config: BaseConfig; | ||
config: SrvConfig; | ||
srvs: ServiceGroup; | ||
} | ||
export interface BaseConfig { | ||
export interface Ctor<T> { | ||
new (...args: any): T; | ||
} | ||
export interface SrvConfig { | ||
/** | ||
@@ -23,3 +26,3 @@ * 名称空间 | ||
} | ||
export interface IService { | ||
export interface ServiceBase { | ||
} | ||
@@ -34,3 +37,3 @@ export declare type Stop = () => void; | ||
}> { | ||
(ctx: SrvContext, args: U, ctor?: new () => T, depends?: P): Promise<InitOutput<T>>; | ||
(ctx: SrvContext, args: U, ctor?: Ctor<T>, depends?: P): Promise<InitOutput<T>>; | ||
deps?: string[]; | ||
@@ -37,0 +40,0 @@ } |
{ | ||
"name": "@sigodenjs/dee-srv", | ||
"version": "0.16.4", | ||
"version": "0.17.0", | ||
"description": "A way to write and organize service", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
1855
46