Comparing version 2.8.3 to 2.8.4
# Awilix Changelog | ||
## 2.8.4 | ||
* Change `RegistrationOptions` typing to union of string and options | ||
## 2.8.3 | ||
@@ -4,0 +8,0 @@ |
@@ -45,5 +45,3 @@ // Type definitions for Awilix v2.2.6 | ||
*/ | ||
export declare type LoadModulesTuple = | ||
| [string] | ||
| [string, RegistrationOptions | string] | ||
export declare type LoadModulesTuple = [string] | [string, RegistrationOptions] | ||
@@ -266,26 +264,28 @@ /** | ||
* The options when registering a class, function or value. | ||
* @interface RegistrationOptions | ||
* @type RegistrationOptions | ||
*/ | ||
export interface RegistrationOptions { | ||
/** | ||
* Only used for inline configuration with `loadModules`. | ||
*/ | ||
name?: string | ||
/** | ||
* Lifetime setting. | ||
*/ | ||
lifetime?: Lifetime | ||
/** | ||
* Resolution mode. | ||
*/ | ||
resolutionMode?: ResolutionMode | ||
/** | ||
* Injector function to provide additional parameters. | ||
*/ | ||
injector?: InjectorFunction | ||
/** | ||
* Registration function to use. | ||
*/ | ||
register?: (...args: any[]) => Registration | ||
} | ||
export type RegistrationOptions = | ||
| string | ||
| { | ||
/** | ||
* Only used for inline configuration with `loadModules`. | ||
*/ | ||
name?: string | ||
/** | ||
* Lifetime setting. | ||
*/ | ||
lifetime?: Lifetime | ||
/** | ||
* Resolution mode. | ||
*/ | ||
resolutionMode?: ResolutionMode | ||
/** | ||
* Injector function to provide additional parameters. | ||
*/ | ||
injector?: InjectorFunction | ||
/** | ||
* Registration function to use. | ||
*/ | ||
register?: (...args: any[]) => Registration | ||
} | ||
@@ -292,0 +292,0 @@ /** |
{ | ||
"name": "awilix", | ||
"version": "2.8.3", | ||
"version": "2.8.4", | ||
"description": "Simple dependency injection container + helper utilities to facilitate wiring of modules", | ||
@@ -5,0 +5,0 @@ "main": "lib/awilix.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
422949