Comparing version 2.0.1 to 2.0.2
import { Dependency } from './types'; | ||
declare type D<T> = Dependency<T>; | ||
declare type Return<TClass> = (constructor: TClass) => TClass; | ||
declare type Return<TClass> = TClass extends new (...args: any[]) => infer TInstance ? (constructor: TClass) => TInstance : never; | ||
declare function dependencies<A1, TClass extends new (a1: A1, ...args: any[]) => any>(a1: D<A1>): Return<TClass>; | ||
@@ -5,0 +5,0 @@ declare function dependencies<A1, A2, TClass extends new (a1: A1, a2: A2, ...args: any[]) => any>(a1: D<A1>, a2: D<A2>): Return<TClass>; |
{ | ||
"name": "cheap-di", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "JavaScript dependency injection like Autofac in .Net", | ||
@@ -5,0 +5,0 @@ "scripts": { |
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
16908