reactive-di
Advanced tools
Comparing version 1.0.6 to 1.0.7
'use strict'; | ||
exports.__esModule = true; | ||
exports.defaultPlugins = exports.createManagerFactory = exports.BaseProvider = exports.SimpleMap = exports.SimpleSet = exports.createDummyRelationUpdater = exports.createHotRelationUpdater = exports.annotationDriver = exports.fastCreateObject = exports.fastCall = undefined; | ||
exports.defaultPlugins = exports.createManagerFactory = exports.BaseProvider = exports.SimpleMap = exports.SimpleSet = exports.createDummyRelationUpdater = exports.createHotRelationUpdater = exports.annotationDriver = exports.DisposableCollection = exports.fastCreateObject = exports.fastCall = undefined; | ||
@@ -38,2 +38,6 @@ var _BaseProvider = require('./core/BaseProvider'); | ||
var _DisposableCollection = require('./utils/DisposableCollection'); | ||
var _DisposableCollection2 = _interopRequireDefault(_DisposableCollection); | ||
var _fastCall = require('./utils/fastCall'); | ||
@@ -45,2 +49,3 @@ | ||
exports.fastCreateObject = _fastCall.fastCreateObject; | ||
exports.DisposableCollection = _DisposableCollection2.default; | ||
exports.annotationDriver = _annotationDriver2.default; | ||
@@ -47,0 +52,0 @@ exports.createHotRelationUpdater = _createHotRelationUpdater2.default; |
/* @flow */ | ||
import type { | ||
ProviderManager, | ||
Disposable, | ||
Collection, | ||
Container, | ||
@@ -13,4 +14,2 @@ Tag, | ||
RelationUpdater, | ||
CreateContainer, | ||
Resolver, | ||
CreateContainerManager, | ||
@@ -26,32 +25,48 @@ ContainerManager | ||
declare function fastCall<T>(fn: Function, args: Array<any>): T; | ||
declare function fastCreateObject<T>(target: Class<T>, args: Array<any>): T; | ||
declare var annotationDriver: AnnotationDriver; | ||
declare function createConfigProvider( | ||
declare function createManagerFactory( | ||
pluginsConfig?: Array<Plugin>, | ||
createUpdater?: () => RelationUpdater, | ||
createContainer?: CreateContainer | ||
): CreateContainerManager; | ||
declare function createDefaultContainer( | ||
providerManager: ProviderManager, | ||
middlewares: Map<DependencyKey|Tag, Array<DependencyKey>>, | ||
parent: ?Container | ||
): Container; | ||
createUpdater?: () => RelationUpdater | ||
): (config?: Array<Annotation>) => ContainerManager; | ||
declare function createHotRelationUpdater(): RelationUpdater; | ||
declare function createDummyRelationUpdater(): RelationUpdater; | ||
declare var defaultPlugins: Array<Plugin>; | ||
declare class DisposableCollection<T: Disposable> { | ||
items: Array<T>; | ||
add(item: T): void; | ||
} | ||
declare class SimpleMap<K, V> extends Map<K, V> {} | ||
declare class BaseProvider<Ann: Annotation> { | ||
declare class SimpleSet<V> extends Set<V> {} | ||
declare class BaseProvider<V, Ann: Annotation, P: Provider> { | ||
kind: any; | ||
displayName: string; | ||
tags: Array<Tag>; | ||
annotation: Ann; | ||
getDependencies(): Array<Provider>; | ||
addDependency(dependency: Provider): void; | ||
value: V; | ||
getDependants(): Array<Provider>; | ||
addDependant(dependant: Provider): void; | ||
isDisposed: boolean; | ||
isCached: boolean; | ||
createResolver(container: Container): Resolver; | ||
dependencies: Array<Provider|P>; | ||
dependants: Collection<Provider|P>; | ||
constructor(annotation: Ann): void; | ||
init(container: Container): void; | ||
dispose(): void; | ||
update(): void; | ||
addDependency(dependency: P): void; | ||
addDependant(dependant: P): void; | ||
} | ||
} |
{ | ||
"name": "reactive-di", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Reactive dependency injection", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
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
215341
2288