@contember/dic
Advanced tools
Comparing version 1.3.0-alpha.13 to 1.3.0-beta.1
@@ -1,9 +0,9 @@ | ||
export declare type ServiceName = string; | ||
export declare type ReservedServiceName = 'inner'; | ||
export declare type ServiceType = any; | ||
export declare type ServiceTypeMap = { | ||
export type ServiceName = string; | ||
export type ReservedServiceName = 'inner'; | ||
export type ServiceType = any; | ||
export type ServiceTypeMap = { | ||
[N in ServiceName]: ServiceType | undefined; | ||
}; | ||
export declare type ServiceFactory<M extends ServiceTypeMap, T> = (accessors: Readonly<M>) => T; | ||
export declare type ServiceSetup<M extends ServiceTypeMap, T> = (service: T, accessors: Readonly<M>) => void; | ||
export type ServiceFactory<M extends ServiceTypeMap, T> = (accessors: Readonly<M>) => T; | ||
export type ServiceSetup<M extends ServiceTypeMap, T> = (service: T, accessors: Readonly<M>) => void; | ||
export interface ServiceDefinition<M extends ServiceTypeMap, T> { | ||
@@ -14,3 +14,3 @@ factory: ServiceFactory<M, T>; | ||
} | ||
export declare type ServiceDefinitionMap<M extends ServiceTypeMap> = { | ||
export type ServiceDefinitionMap<M extends ServiceTypeMap> = { | ||
[N in keyof M]: ServiceDefinition<M, M[N]>; | ||
@@ -34,3 +34,3 @@ }; | ||
} | ||
export declare type Container<M extends ServiceTypeMap> = ContainerImpl<M> & { | ||
export type Container<M extends ServiceTypeMap> = ContainerImpl<M> & { | ||
[K in keyof M]: M[K]; | ||
@@ -37,0 +37,0 @@ }; |
{ | ||
"name": "@contember/dic", | ||
"version": "1.3.0-alpha.13", | ||
"version": "1.3.0-beta.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is not supported yet
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
55892