@spinajs/di
Advanced tools
Comparing version 2.0.220 to 2.0.221
@@ -87,3 +87,3 @@ import { IAutoinjectOptions, IInjectDescriptor } from './interfaces.js'; | ||
*/ | ||
export declare function Autoinject<T>(typeOrOptions?: Class<T> | IAutoinjectOptions, options?: IAutoinjectOptions): any; | ||
export declare function Autoinject<T>(typeOrOptions?: Class<T> | IAutoinjectOptions<T>, options?: IAutoinjectOptions<T>): any; | ||
/** | ||
@@ -90,0 +90,0 @@ * Lazy injects service to object. Use only with class properties |
@@ -129,3 +129,3 @@ /// <reference types="node" /> | ||
serviceFunc?: (data: string | any[], container: IContainer) => IServiceFuncResult | IServiceFuncResult[]; | ||
mapFunc?: (x: IMappableService) => string; | ||
mapFunc?: (x: any) => string; | ||
} | ||
@@ -170,6 +170,6 @@ export interface IMappableService { | ||
} | ||
export interface IAutoinjectOptions { | ||
mapFunc?: (x: IMappableService) => string; | ||
export interface IAutoinjectOptions<T> { | ||
mapFunc?: (x: T) => string; | ||
options?: any; | ||
} | ||
//# sourceMappingURL=interfaces.d.ts.map |
@@ -87,3 +87,3 @@ import { IAutoinjectOptions, IInjectDescriptor } from './interfaces.js'; | ||
*/ | ||
export declare function Autoinject<T>(typeOrOptions?: Class<T> | IAutoinjectOptions, options?: IAutoinjectOptions): any; | ||
export declare function Autoinject<T>(typeOrOptions?: Class<T> | IAutoinjectOptions<T>, options?: IAutoinjectOptions<T>): any; | ||
/** | ||
@@ -90,0 +90,0 @@ * Lazy injects service to object. Use only with class properties |
@@ -129,3 +129,3 @@ /// <reference types="node" resolution-mode="require"/> | ||
serviceFunc?: (data: string | any[], container: IContainer) => IServiceFuncResult | IServiceFuncResult[]; | ||
mapFunc?: (x: IMappableService) => string; | ||
mapFunc?: (x: any) => string; | ||
} | ||
@@ -170,6 +170,6 @@ export interface IMappableService { | ||
} | ||
export interface IAutoinjectOptions { | ||
mapFunc?: (x: IMappableService) => string; | ||
export interface IAutoinjectOptions<T> { | ||
mapFunc?: (x: T) => string; | ||
options?: any; | ||
} | ||
//# sourceMappingURL=interfaces.d.ts.map |
{ | ||
"name": "@spinajs/di", | ||
"version": "2.0.220", | ||
"version": "2.0.221", | ||
"description": "lightweight di container ", | ||
@@ -53,4 +53,4 @@ "main": "lib/cjs/index.js", | ||
"dependencies": { | ||
"@spinajs/exceptions": "^2.0.220", | ||
"@spinajs/util": "^2.0.220", | ||
"@spinajs/exceptions": "^2.0.221", | ||
"@spinajs/util": "^2.0.221", | ||
"lodash": "^4.17.21", | ||
@@ -57,0 +57,0 @@ "reflect-metadata": "^0.1.13" |
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
408898
Updated@spinajs/exceptions@^2.0.221
Updated@spinajs/util@^2.0.221