inversify 6.1.4 → 6.1.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/README.md +6 -15
- package/{amd → lib/cjs}/annotation/decorator_utils.d.ts +1 -0
- package/lib/cjs/annotation/decorator_utils.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/decorator_utils.js +25 -7
- package/lib/cjs/annotation/decorator_utils.js.map +1 -0
- package/{es6 → lib/cjs}/annotation/inject.d.ts +1 -0
- package/lib/cjs/annotation/inject.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/inject.js +18 -7
- package/lib/cjs/annotation/inject.js.map +1 -0
- package/{amd → lib/cjs}/annotation/inject_base.d.ts +1 -0
- package/lib/cjs/annotation/inject_base.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/inject_base.js +2 -0
- package/lib/cjs/annotation/inject_base.js.map +1 -0
- package/{amd → lib/cjs}/annotation/injectable.d.ts +1 -0
- package/lib/cjs/annotation/injectable.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/injectable.js +19 -7
- package/lib/cjs/annotation/injectable.js.map +1 -0
- package/{es → lib/cjs}/annotation/multi_inject.d.ts +1 -0
- package/lib/cjs/annotation/multi_inject.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/multi_inject.js +18 -7
- package/lib/cjs/annotation/multi_inject.js.map +1 -0
- package/{amd → lib/cjs}/annotation/named.d.ts +1 -0
- package/lib/cjs/annotation/named.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/named.js +19 -7
- package/lib/cjs/annotation/named.js.map +1 -0
- package/{amd → lib/cjs}/annotation/optional.d.ts +1 -0
- package/lib/cjs/annotation/optional.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/optional.js +18 -7
- package/lib/cjs/annotation/optional.js.map +1 -0
- package/{amd → lib/cjs}/annotation/post_construct.d.ts +1 -0
- package/lib/cjs/annotation/post_construct.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/post_construct.js +18 -7
- package/lib/cjs/annotation/post_construct.js.map +1 -0
- package/{es6 → lib/cjs}/annotation/pre_destroy.d.ts +1 -0
- package/lib/cjs/annotation/pre_destroy.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/pre_destroy.js +18 -7
- package/lib/cjs/annotation/pre_destroy.js.map +1 -0
- package/{es → lib/cjs}/annotation/property_event_decorator.d.ts +1 -0
- package/lib/cjs/annotation/property_event_decorator.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/property_event_decorator.js +1 -0
- package/lib/cjs/annotation/property_event_decorator.js.map +1 -0
- package/{amd → lib/cjs}/annotation/tagged.d.ts +1 -0
- package/lib/cjs/annotation/tagged.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/tagged.js +2 -0
- package/lib/cjs/annotation/tagged.js.map +1 -0
- package/{es6 → lib/cjs}/annotation/target_name.d.ts +1 -0
- package/lib/cjs/annotation/target_name.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/target_name.js +18 -7
- package/lib/cjs/annotation/target_name.js.map +1 -0
- package/{es6 → lib/cjs}/annotation/unmanaged.d.ts +1 -0
- package/lib/cjs/annotation/unmanaged.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/unmanaged.js +18 -7
- package/lib/cjs/annotation/unmanaged.js.map +1 -0
- package/{es6 → lib/cjs}/bindings/binding.d.ts +1 -0
- package/lib/cjs/bindings/binding.d.ts.map +1 -0
- package/{es6 → lib/cjs}/bindings/binding.js +29 -0
- package/lib/cjs/bindings/binding.js.map +1 -0
- package/{amd → lib/cjs}/bindings/binding_count.d.ts +1 -0
- package/lib/cjs/bindings/binding_count.d.ts.map +1 -0
- package/lib/{bindings → cjs/bindings}/binding_count.js +1 -0
- package/lib/cjs/bindings/binding_count.js.map +1 -0
- package/{amd → lib/cjs}/constants/error_msgs.d.ts +1 -0
- package/lib/cjs/constants/error_msgs.d.ts.map +1 -0
- package/{es6 → lib/cjs}/constants/error_msgs.js +2 -0
- package/lib/cjs/constants/error_msgs.js.map +1 -0
- package/{es → lib/cjs}/constants/literal_types.d.ts +1 -0
- package/lib/cjs/constants/literal_types.d.ts.map +1 -0
- package/{es6 → lib/cjs}/constants/literal_types.js +4 -0
- package/lib/cjs/constants/literal_types.js.map +1 -0
- package/{amd → lib/cjs}/constants/metadata_keys.d.ts +1 -0
- package/lib/cjs/constants/metadata_keys.d.ts.map +1 -0
- package/{es6 → lib/cjs}/constants/metadata_keys.js +13 -0
- package/lib/cjs/constants/metadata_keys.js.map +1 -0
- package/{es6 → lib/cjs}/container/container.d.ts +3 -0
- package/lib/cjs/container/container.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/container.js +157 -147
- package/lib/cjs/container/container.js.map +1 -0
- package/{amd → lib/cjs}/container/container_module.d.ts +1 -0
- package/lib/cjs/container/container_module.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/container_module.js +5 -0
- package/lib/cjs/container/container_module.js.map +1 -0
- package/{es → lib/cjs}/container/container_snapshot.d.ts +1 -0
- package/lib/cjs/container/container_snapshot.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/container_snapshot.js +6 -0
- package/lib/cjs/container/container_snapshot.js.map +1 -0
- package/{es → lib/cjs}/container/lookup.d.ts +1 -0
- package/lib/cjs/container/lookup.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/lookup.js +26 -7
- package/lib/cjs/container/lookup.js.map +1 -0
- package/{es6 → lib/cjs}/container/module_activation_store.d.ts +3 -2
- package/lib/cjs/container/module_activation_store.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/module_activation_store.js +2 -3
- package/lib/cjs/container/module_activation_store.js.map +1 -0
- package/{amd/inversify.d.ts → lib/cjs/index.d.ts} +2 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/{es6/inversify.js → lib/cjs/index.js} +20 -7
- package/lib/cjs/index.js.map +1 -0
- package/{amd → lib/cjs}/interfaces/interfaces.d.ts +3 -2
- package/lib/cjs/interfaces/interfaces.d.ts.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/interfaces.js +1 -0
- package/lib/cjs/interfaces/interfaces.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/{es6 → lib/cjs}/planning/context.d.ts +1 -0
- package/lib/cjs/planning/context.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/context.js +5 -0
- package/lib/cjs/planning/context.js.map +1 -0
- package/{es6 → lib/cjs}/planning/metadata.d.ts +1 -0
- package/lib/cjs/planning/metadata.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/metadata.js +20 -7
- package/lib/cjs/planning/metadata.js.map +1 -0
- package/{es → lib/cjs}/planning/metadata_reader.d.ts +1 -0
- package/lib/cjs/planning/metadata_reader.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/metadata_reader.js +24 -12
- package/lib/cjs/planning/metadata_reader.js.map +1 -0
- package/{amd → lib/cjs}/planning/plan.d.ts +1 -0
- package/lib/cjs/planning/plan.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/plan.js +3 -0
- package/lib/cjs/planning/plan.js.map +1 -0
- package/{amd → lib/cjs}/planning/planner.d.ts +1 -0
- package/lib/cjs/planning/planner.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/planner.js +27 -7
- package/lib/cjs/planning/planner.js.map +1 -0
- package/{amd → lib/cjs}/planning/queryable_string.d.ts +1 -0
- package/lib/cjs/planning/queryable_string.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/queryable_string.js +3 -0
- package/lib/cjs/planning/queryable_string.js.map +1 -0
- package/{amd → lib/cjs}/planning/reflection_utils.d.ts +1 -0
- package/lib/cjs/planning/reflection_utils.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/reflection_utils.js +25 -8
- package/lib/cjs/planning/reflection_utils.js.map +1 -0
- package/{amd → lib/cjs}/planning/request.d.ts +1 -0
- package/lib/cjs/planning/request.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/request.js +13 -1
- package/lib/cjs/planning/request.js.map +1 -0
- package/{es → lib/cjs}/resolution/instantiation.d.ts +1 -0
- package/lib/cjs/resolution/instantiation.d.ts.map +1 -0
- package/{es6 → lib/cjs}/resolution/instantiation.js +40 -37
- package/lib/cjs/resolution/instantiation.js.map +1 -0
- package/{amd → lib/cjs}/resolution/resolver.d.ts +1 -0
- package/lib/cjs/resolution/resolver.d.ts.map +1 -0
- package/{es6 → lib/cjs}/resolution/resolver.js +39 -20
- package/lib/cjs/resolution/resolver.js.map +1 -0
- package/{amd → lib/cjs}/scope/scope.d.ts +1 -0
- package/lib/cjs/scope/scope.d.ts.map +1 -0
- package/{es6 → lib/cjs}/scope/scope.js +10 -12
- package/lib/cjs/scope/scope.js.map +1 -0
- package/{amd → lib/cjs}/syntax/binding_in_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_in_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_in_syntax.js +2 -0
- package/lib/cjs/syntax/binding_in_syntax.js.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_in_when_on_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_in_when_on_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_in_when_on_syntax.js +5 -0
- package/lib/cjs/syntax/binding_in_when_on_syntax.js.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_on_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_on_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_on_syntax.js +2 -0
- package/lib/cjs/syntax/binding_on_syntax.js.map +1 -0
- package/{es → lib/cjs}/syntax/binding_to_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_to_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_to_syntax.js +43 -8
- package/lib/cjs/syntax/binding_to_syntax.js.map +1 -0
- package/{amd → lib/cjs}/syntax/binding_when_on_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_when_on_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_when_on_syntax.js +4 -0
- package/lib/cjs/syntax/binding_when_on_syntax.js.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_when_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_when_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_when_syntax.js +5 -1
- package/lib/cjs/syntax/binding_when_syntax.js.map +1 -0
- package/{amd → lib/cjs}/syntax/constraint_helpers.d.ts +1 -0
- package/lib/cjs/syntax/constraint_helpers.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/constraint_helpers.js +22 -7
- package/lib/cjs/syntax/constraint_helpers.js.map +1 -0
- package/{amd → lib/cjs}/utils/async.d.ts +1 -0
- package/lib/cjs/utils/async.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/async.js +1 -0
- package/lib/cjs/utils/async.js.map +1 -0
- package/{es6 → lib/cjs}/utils/binding_utils.d.ts +1 -0
- package/lib/cjs/utils/binding_utils.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/binding_utils.js +21 -7
- package/lib/cjs/utils/binding_utils.js.map +1 -0
- package/{es6 → lib/cjs}/utils/clonable.d.ts +1 -0
- package/lib/cjs/utils/clonable.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/clonable.js +1 -0
- package/lib/cjs/utils/clonable.js.map +1 -0
- package/{amd → lib/cjs}/utils/exceptions.d.ts +1 -0
- package/lib/cjs/utils/exceptions.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/exceptions.js +18 -7
- package/lib/cjs/utils/exceptions.js.map +1 -0
- package/{es6 → lib/cjs}/utils/factory_type.d.ts +1 -0
- package/lib/cjs/utils/factory_type.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/factory_type.js +1 -0
- package/lib/cjs/utils/factory_type.js.map +1 -0
- package/{amd → lib/cjs}/utils/id.d.ts +1 -0
- package/lib/cjs/utils/id.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/id.js +1 -0
- package/lib/cjs/utils/id.js.map +1 -0
- package/{amd → lib/cjs}/utils/js.d.ts +1 -0
- package/lib/cjs/utils/js.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/js.js +1 -0
- package/lib/cjs/utils/js.js.map +1 -0
- package/{amd → lib/cjs}/utils/serialization.d.ts +1 -0
- package/lib/cjs/utils/serialization.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/serialization.js +23 -7
- package/lib/cjs/utils/serialization.js.map +1 -0
- package/{es6/interfaces/interfaces.d.ts → lib/esm/index.d.ts} +207 -8
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -0
- package/package.json +30 -34
- package/amd/annotation/decorator_utils.js +0 -119
- package/amd/annotation/inject.d.ts +0 -5
- package/amd/annotation/inject.js +0 -31
- package/amd/annotation/inject_base.js +0 -16
- package/amd/annotation/injectable.js +0 -40
- package/amd/annotation/lazy_service_identifier.js +0 -4
- package/amd/annotation/multi_inject.d.ts +0 -5
- package/amd/annotation/multi_inject.js +0 -31
- package/amd/annotation/named.js +0 -32
- package/amd/annotation/optional.js +0 -32
- package/amd/annotation/post_construct.js +0 -32
- package/amd/annotation/pre_destroy.d.ts +0 -4
- package/amd/annotation/pre_destroy.js +0 -32
- package/amd/annotation/property_event_decorator.d.ts +0 -4
- package/amd/annotation/property_event_decorator.js +0 -16
- package/amd/annotation/tagged.js +0 -8
- package/amd/annotation/target_name.d.ts +0 -3
- package/amd/annotation/target_name.js +0 -35
- package/amd/annotation/unmanaged.d.ts +0 -3
- package/amd/annotation/unmanaged.js +0 -35
- package/amd/bindings/binding.d.ts +0 -20
- package/amd/bindings/binding.js +0 -40
- package/amd/bindings/binding_count.js +0 -11
- package/amd/constants/error_msgs.js +0 -75
- package/amd/constants/literal_types.d.ts +0 -5
- package/amd/constants/literal_types.js +0 -28
- package/amd/constants/metadata_keys.js +0 -28
- package/amd/container/container.d.ts +0 -73
- package/amd/container/container.js +0 -766
- package/amd/container/container_module.js +0 -21
- package/amd/container/container_snapshot.d.ts +0 -10
- package/amd/container/container_snapshot.js +0 -20
- package/amd/container/lookup.d.ts +0 -17
- package/amd/container/lookup.js +0 -132
- package/amd/container/module_activation_store.d.ts +0 -10
- package/amd/container/module_activation_store.js +0 -51
- package/amd/interfaces/interfaces.js +0 -4
- package/amd/inversify.js +0 -57
- package/amd/planning/context.d.ts +0 -11
- package/amd/planning/context.js +0 -19
- package/amd/planning/metadata.d.ts +0 -8
- package/amd/planning/metadata.js +0 -45
- package/amd/planning/metadata_reader.d.ts +0 -6
- package/amd/planning/metadata_reader.js +0 -49
- package/amd/planning/plan.js +0 -13
- package/amd/planning/planner.js +0 -187
- package/amd/planning/queryable_string.js +0 -33
- package/amd/planning/reflection_utils.js +0 -55
- package/amd/planning/request.js +0 -24
- package/amd/planning/target.js +0 -111
- package/amd/resolution/instantiation.d.ts +0 -3
- package/amd/resolution/instantiation.js +0 -219
- package/amd/resolution/resolver.js +0 -234
- package/amd/scope/scope.js +0 -93
- package/amd/syntax/binding_in_syntax.js +0 -24
- package/amd/syntax/binding_in_when_on_syntax.d.ts +0 -29
- package/amd/syntax/binding_in_when_on_syntax.js +0 -75
- package/amd/syntax/binding_on_syntax.d.ts +0 -8
- package/amd/syntax/binding_on_syntax.js +0 -20
- package/amd/syntax/binding_to_syntax.d.ts +0 -18
- package/amd/syntax/binding_to_syntax.js +0 -116
- package/amd/syntax/binding_when_on_syntax.js +0 -65
- package/amd/syntax/binding_when_syntax.d.ts +0 -21
- package/amd/syntax/binding_when_syntax.js +0 -107
- package/amd/syntax/constraint_helpers.js +0 -66
- package/amd/utils/async.js +0 -17
- package/amd/utils/binding_utils.d.ts +0 -4
- package/amd/utils/binding_utils.js +0 -86
- package/amd/utils/clonable.d.ts +0 -3
- package/amd/utils/clonable.js +0 -11
- package/amd/utils/exceptions.js +0 -46
- package/amd/utils/factory_type.d.ts +0 -5
- package/amd/utils/factory_type.js +0 -11
- package/amd/utils/id.js +0 -9
- package/amd/utils/js.js +0 -18
- package/amd/utils/serialization.js +0 -135
- package/es/annotation/decorator_utils.d.ts +0 -16
- package/es/annotation/decorator_utils.js +0 -90
- package/es/annotation/inject.d.ts +0 -5
- package/es/annotation/inject.js +0 -4
- package/es/annotation/inject_base.d.ts +0 -4
- package/es/annotation/inject_base.js +0 -14
- package/es/annotation/injectable.d.ts +0 -2
- package/es/annotation/injectable.js +0 -13
- package/es/annotation/lazy_service_identifier.js +0 -1
- package/es/annotation/multi_inject.js +0 -4
- package/es/annotation/named.d.ts +0 -2
- package/es/annotation/named.js +0 -7
- package/es/annotation/optional.d.ts +0 -2
- package/es/annotation/optional.js +0 -7
- package/es/annotation/post_construct.d.ts +0 -4
- package/es/annotation/post_construct.js +0 -5
- package/es/annotation/pre_destroy.d.ts +0 -4
- package/es/annotation/pre_destroy.js +0 -5
- package/es/annotation/property_event_decorator.js +0 -13
- package/es/annotation/tagged.d.ts +0 -2
- package/es/annotation/tagged.js +0 -6
- package/es/annotation/target_name.d.ts +0 -3
- package/es/annotation/target_name.js +0 -10
- package/es/annotation/unmanaged.d.ts +0 -3
- package/es/annotation/unmanaged.js +0 -10
- package/es/bindings/binding.d.ts +0 -20
- package/es/bindings/binding.js +0 -37
- package/es/bindings/binding_count.d.ts +0 -5
- package/es/bindings/binding_count.js +0 -6
- package/es/constants/error_msgs.d.ts +0 -30
- package/es/constants/error_msgs.js +0 -62
- package/es/constants/literal_types.js +0 -21
- package/es/constants/metadata_keys.d.ts +0 -13
- package/es/constants/metadata_keys.js +0 -23
- package/es/container/container.d.ts +0 -73
- package/es/container/container.js +0 -750
- package/es/container/container_module.d.ts +0 -11
- package/es/container/container_module.js +0 -17
- package/es/container/container_snapshot.js +0 -15
- package/es/container/lookup.js +0 -105
- package/es/container/module_activation_store.d.ts +0 -10
- package/es/container/module_activation_store.js +0 -47
- package/es/interfaces/interfaces.d.ts +0 -269
- package/es/interfaces/interfaces.js +0 -1
- package/es/inversify.d.ts +0 -24
- package/es/inversify.js +0 -2
- package/es/planning/context.d.ts +0 -11
- package/es/planning/context.js +0 -15
- package/es/planning/metadata.d.ts +0 -8
- package/es/planning/metadata.js +0 -17
- package/es/planning/metadata_reader.js +0 -21
- package/es/planning/plan.d.ts +0 -7
- package/es/planning/plan.js +0 -8
- package/es/planning/planner.d.ts +0 -5
- package/es/planning/planner.js +0 -168
- package/es/planning/queryable_string.d.ts +0 -10
- package/es/planning/queryable_string.js +0 -28
- package/es/planning/reflection_utils.d.ts +0 -5
- package/es/planning/reflection_utils.js +0 -27
- package/es/planning/request.d.ts +0 -14
- package/es/planning/request.js +0 -20
- package/es/planning/target.js +0 -87
- package/es/resolution/instantiation.js +0 -195
- package/es/resolution/resolver.d.ts +0 -3
- package/es/resolution/resolver.js +0 -214
- package/es/scope/scope.d.ts +0 -3
- package/es/scope/scope.js +0 -88
- package/es/syntax/binding_in_syntax.d.ts +0 -9
- package/es/syntax/binding_in_syntax.js +0 -21
- package/es/syntax/binding_in_when_on_syntax.d.ts +0 -29
- package/es/syntax/binding_in_when_on_syntax.js +0 -73
- package/es/syntax/binding_on_syntax.d.ts +0 -8
- package/es/syntax/binding_on_syntax.js +0 -16
- package/es/syntax/binding_to_syntax.js +0 -91
- package/es/syntax/binding_when_on_syntax.d.ts +0 -25
- package/es/syntax/binding_when_on_syntax.js +0 -62
- package/es/syntax/binding_when_syntax.d.ts +0 -21
- package/es/syntax/binding_when_syntax.js +0 -104
- package/es/syntax/constraint_helpers.d.ts +0 -6
- package/es/syntax/constraint_helpers.js +0 -36
- package/es/utils/async.d.ts +0 -3
- package/es/utils/async.js +0 -12
- package/es/utils/binding_utils.d.ts +0 -4
- package/es/utils/binding_utils.js +0 -58
- package/es/utils/clonable.d.ts +0 -3
- package/es/utils/clonable.js +0 -7
- package/es/utils/exceptions.d.ts +0 -2
- package/es/utils/exceptions.js +0 -16
- package/es/utils/factory_type.d.ts +0 -5
- package/es/utils/factory_type.js +0 -6
- package/es/utils/id.d.ts +0 -2
- package/es/utils/id.js +0 -5
- package/es/utils/js.d.ts +0 -1
- package/es/utils/js.js +0 -13
- package/es/utils/serialization.d.ts +0 -10
- package/es/utils/serialization.js +0 -103
- package/es6/annotation/decorator_utils.d.ts +0 -16
- package/es6/annotation/inject_base.d.ts +0 -4
- package/es6/annotation/injectable.d.ts +0 -2
- package/es6/annotation/lazy_service_identifier.js +0 -2
- package/es6/annotation/multi_inject.d.ts +0 -5
- package/es6/annotation/named.d.ts +0 -2
- package/es6/annotation/optional.d.ts +0 -2
- package/es6/annotation/post_construct.d.ts +0 -4
- package/es6/annotation/property_event_decorator.d.ts +0 -4
- package/es6/annotation/tagged.d.ts +0 -2
- package/es6/bindings/binding_count.d.ts +0 -5
- package/es6/bindings/binding_count.js +0 -9
- package/es6/constants/error_msgs.d.ts +0 -30
- package/es6/constants/literal_types.d.ts +0 -5
- package/es6/constants/metadata_keys.d.ts +0 -13
- package/es6/container/container_module.d.ts +0 -11
- package/es6/container/container_snapshot.d.ts +0 -10
- package/es6/container/lookup.d.ts +0 -17
- package/es6/interfaces/interfaces.js +0 -2
- package/es6/inversify.d.ts +0 -24
- package/es6/planning/metadata_reader.d.ts +0 -6
- package/es6/planning/plan.d.ts +0 -7
- package/es6/planning/planner.d.ts +0 -5
- package/es6/planning/queryable_string.d.ts +0 -10
- package/es6/planning/reflection_utils.d.ts +0 -5
- package/es6/planning/request.d.ts +0 -14
- package/es6/planning/target.js +0 -105
- package/es6/resolution/instantiation.d.ts +0 -3
- package/es6/resolution/resolver.d.ts +0 -3
- package/es6/scope/scope.d.ts +0 -3
- package/es6/syntax/binding_in_syntax.d.ts +0 -9
- package/es6/syntax/binding_to_syntax.d.ts +0 -18
- package/es6/syntax/binding_when_on_syntax.d.ts +0 -25
- package/es6/syntax/constraint_helpers.d.ts +0 -6
- package/es6/utils/async.d.ts +0 -3
- package/es6/utils/exceptions.d.ts +0 -2
- package/es6/utils/id.d.ts +0 -2
- package/es6/utils/js.d.ts +0 -1
- package/es6/utils/serialization.d.ts +0 -10
- package/lib/annotation/decorator_utils.d.ts +0 -16
- package/lib/annotation/decorator_utils.js +0 -118
- package/lib/annotation/inject.d.ts +0 -5
- package/lib/annotation/inject.js +0 -30
- package/lib/annotation/inject_base.d.ts +0 -4
- package/lib/annotation/inject_base.js +0 -17
- package/lib/annotation/injectable.d.ts +0 -2
- package/lib/annotation/injectable.js +0 -38
- package/lib/annotation/lazy_service_identifier.d.ts +0 -3
- package/lib/annotation/lazy_service_identifier.js +0 -2
- package/lib/annotation/multi_inject.d.ts +0 -5
- package/lib/annotation/multi_inject.js +0 -30
- package/lib/annotation/named.d.ts +0 -2
- package/lib/annotation/named.js +0 -32
- package/lib/annotation/optional.d.ts +0 -2
- package/lib/annotation/optional.js +0 -32
- package/lib/annotation/post_construct.d.ts +0 -4
- package/lib/annotation/post_construct.js +0 -31
- package/lib/annotation/pre_destroy.d.ts +0 -4
- package/lib/annotation/pre_destroy.js +0 -31
- package/lib/annotation/property_event_decorator.d.ts +0 -4
- package/lib/annotation/property_event_decorator.js +0 -15
- package/lib/annotation/tagged.d.ts +0 -2
- package/lib/annotation/tagged.js +0 -8
- package/lib/annotation/target_name.d.ts +0 -3
- package/lib/annotation/target_name.js +0 -35
- package/lib/annotation/unmanaged.d.ts +0 -3
- package/lib/annotation/unmanaged.js +0 -35
- package/lib/bindings/binding.d.ts +0 -20
- package/lib/bindings/binding.js +0 -40
- package/lib/bindings/binding_count.d.ts +0 -5
- package/lib/constants/error_msgs.d.ts +0 -30
- package/lib/constants/error_msgs.js +0 -73
- package/lib/constants/literal_types.d.ts +0 -5
- package/lib/constants/literal_types.js +0 -26
- package/lib/constants/metadata_keys.d.ts +0 -13
- package/lib/constants/metadata_keys.js +0 -26
- package/lib/container/container.d.ts +0 -73
- package/lib/container/container.js +0 -776
- package/lib/container/container_module.d.ts +0 -11
- package/lib/container/container_module.js +0 -20
- package/lib/container/container_snapshot.d.ts +0 -10
- package/lib/container/container_snapshot.js +0 -18
- package/lib/container/lookup.d.ts +0 -17
- package/lib/container/lookup.js +0 -131
- package/lib/container/module_activation_store.d.ts +0 -10
- package/lib/container/module_activation_store.js +0 -50
- package/lib/interfaces/interfaces.d.ts +0 -269
- package/lib/inversify.d.ts +0 -24
- package/lib/inversify.js +0 -76
- package/lib/planning/context.d.ts +0 -11
- package/lib/planning/context.js +0 -18
- package/lib/planning/metadata.d.ts +0 -8
- package/lib/planning/metadata.js +0 -43
- package/lib/planning/metadata_reader.d.ts +0 -6
- package/lib/planning/metadata_reader.js +0 -47
- package/lib/planning/plan.d.ts +0 -7
- package/lib/planning/plan.js +0 -11
- package/lib/planning/planner.d.ts +0 -5
- package/lib/planning/planner.js +0 -195
- package/lib/planning/queryable_string.d.ts +0 -10
- package/lib/planning/queryable_string.js +0 -31
- package/lib/planning/reflection_utils.d.ts +0 -5
- package/lib/planning/reflection_utils.js +0 -55
- package/lib/planning/request.d.ts +0 -14
- package/lib/planning/request.js +0 -23
- package/lib/planning/target.d.ts +0 -23
- package/lib/planning/target.js +0 -113
- package/lib/resolution/instantiation.d.ts +0 -3
- package/lib/resolution/instantiation.js +0 -220
- package/lib/resolution/resolver.d.ts +0 -3
- package/lib/resolution/resolver.js +0 -239
- package/lib/scope/scope.d.ts +0 -3
- package/lib/scope/scope.js +0 -93
- package/lib/syntax/binding_in_syntax.d.ts +0 -9
- package/lib/syntax/binding_in_syntax.js +0 -24
- package/lib/syntax/binding_in_when_on_syntax.d.ts +0 -29
- package/lib/syntax/binding_in_when_on_syntax.js +0 -76
- package/lib/syntax/binding_on_syntax.d.ts +0 -8
- package/lib/syntax/binding_on_syntax.js +0 -19
- package/lib/syntax/binding_to_syntax.d.ts +0 -18
- package/lib/syntax/binding_to_syntax.js +0 -117
- package/lib/syntax/binding_when_on_syntax.d.ts +0 -25
- package/lib/syntax/binding_when_on_syntax.js +0 -65
- package/lib/syntax/binding_when_syntax.d.ts +0 -21
- package/lib/syntax/binding_when_syntax.js +0 -107
- package/lib/syntax/constraint_helpers.d.ts +0 -6
- package/lib/syntax/constraint_helpers.js +0 -65
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/utils/async.d.ts +0 -3
- package/lib/utils/async.js +0 -15
- package/lib/utils/binding_utils.d.ts +0 -4
- package/lib/utils/binding_utils.js +0 -87
- package/lib/utils/clonable.d.ts +0 -3
- package/lib/utils/clonable.js +0 -9
- package/lib/utils/exceptions.d.ts +0 -2
- package/lib/utils/exceptions.js +0 -44
- package/lib/utils/factory_type.d.ts +0 -5
- package/lib/utils/factory_type.js +0 -9
- package/lib/utils/id.d.ts +0 -2
- package/lib/utils/id.js +0 -7
- package/lib/utils/js.d.ts +0 -1
- package/lib/utils/js.js +0 -16
- package/lib/utils/serialization.d.ts +0 -10
- package/lib/utils/serialization.js +0 -133
- /package/{es → lib/esm}/package.json +0 -0
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "./binding_on_syntax", "./binding_when_syntax"], function (require, exports, binding_on_syntax_1, binding_when_syntax_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BindingWhenOnSyntax = void 0;
|
|
5
|
-
var BindingWhenOnSyntax = (function () {
|
|
6
|
-
function BindingWhenOnSyntax(binding) {
|
|
7
|
-
this._binding = binding;
|
|
8
|
-
this._bindingWhenSyntax = new binding_when_syntax_1.BindingWhenSyntax(this._binding);
|
|
9
|
-
this._bindingOnSyntax = new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
10
|
-
}
|
|
11
|
-
BindingWhenOnSyntax.prototype.when = function (constraint) {
|
|
12
|
-
return this._bindingWhenSyntax.when(constraint);
|
|
13
|
-
};
|
|
14
|
-
BindingWhenOnSyntax.prototype.whenTargetNamed = function (name) {
|
|
15
|
-
return this._bindingWhenSyntax.whenTargetNamed(name);
|
|
16
|
-
};
|
|
17
|
-
BindingWhenOnSyntax.prototype.whenTargetIsDefault = function () {
|
|
18
|
-
return this._bindingWhenSyntax.whenTargetIsDefault();
|
|
19
|
-
};
|
|
20
|
-
BindingWhenOnSyntax.prototype.whenTargetTagged = function (tag, value) {
|
|
21
|
-
return this._bindingWhenSyntax.whenTargetTagged(tag, value);
|
|
22
|
-
};
|
|
23
|
-
BindingWhenOnSyntax.prototype.whenInjectedInto = function (parent) {
|
|
24
|
-
return this._bindingWhenSyntax.whenInjectedInto(parent);
|
|
25
|
-
};
|
|
26
|
-
BindingWhenOnSyntax.prototype.whenParentNamed = function (name) {
|
|
27
|
-
return this._bindingWhenSyntax.whenParentNamed(name);
|
|
28
|
-
};
|
|
29
|
-
BindingWhenOnSyntax.prototype.whenParentTagged = function (tag, value) {
|
|
30
|
-
return this._bindingWhenSyntax.whenParentTagged(tag, value);
|
|
31
|
-
};
|
|
32
|
-
BindingWhenOnSyntax.prototype.whenAnyAncestorIs = function (ancestor) {
|
|
33
|
-
return this._bindingWhenSyntax.whenAnyAncestorIs(ancestor);
|
|
34
|
-
};
|
|
35
|
-
BindingWhenOnSyntax.prototype.whenNoAncestorIs = function (ancestor) {
|
|
36
|
-
return this._bindingWhenSyntax.whenNoAncestorIs(ancestor);
|
|
37
|
-
};
|
|
38
|
-
BindingWhenOnSyntax.prototype.whenAnyAncestorNamed = function (name) {
|
|
39
|
-
return this._bindingWhenSyntax.whenAnyAncestorNamed(name);
|
|
40
|
-
};
|
|
41
|
-
BindingWhenOnSyntax.prototype.whenAnyAncestorTagged = function (tag, value) {
|
|
42
|
-
return this._bindingWhenSyntax.whenAnyAncestorTagged(tag, value);
|
|
43
|
-
};
|
|
44
|
-
BindingWhenOnSyntax.prototype.whenNoAncestorNamed = function (name) {
|
|
45
|
-
return this._bindingWhenSyntax.whenNoAncestorNamed(name);
|
|
46
|
-
};
|
|
47
|
-
BindingWhenOnSyntax.prototype.whenNoAncestorTagged = function (tag, value) {
|
|
48
|
-
return this._bindingWhenSyntax.whenNoAncestorTagged(tag, value);
|
|
49
|
-
};
|
|
50
|
-
BindingWhenOnSyntax.prototype.whenAnyAncestorMatches = function (constraint) {
|
|
51
|
-
return this._bindingWhenSyntax.whenAnyAncestorMatches(constraint);
|
|
52
|
-
};
|
|
53
|
-
BindingWhenOnSyntax.prototype.whenNoAncestorMatches = function (constraint) {
|
|
54
|
-
return this._bindingWhenSyntax.whenNoAncestorMatches(constraint);
|
|
55
|
-
};
|
|
56
|
-
BindingWhenOnSyntax.prototype.onActivation = function (handler) {
|
|
57
|
-
return this._bindingOnSyntax.onActivation(handler);
|
|
58
|
-
};
|
|
59
|
-
BindingWhenOnSyntax.prototype.onDeactivation = function (handler) {
|
|
60
|
-
return this._bindingOnSyntax.onDeactivation(handler);
|
|
61
|
-
};
|
|
62
|
-
return BindingWhenOnSyntax;
|
|
63
|
-
}());
|
|
64
|
-
exports.BindingWhenOnSyntax = BindingWhenOnSyntax;
|
|
65
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { interfaces } from '../interfaces/interfaces';
|
|
2
|
-
declare class BindingWhenSyntax<T> implements interfaces.BindingWhenSyntax<T> {
|
|
3
|
-
private readonly _binding;
|
|
4
|
-
constructor(binding: interfaces.Binding<T>);
|
|
5
|
-
when(constraint: (request: interfaces.Request) => boolean): interfaces.BindingOnSyntax<T>;
|
|
6
|
-
whenTargetNamed(name: string | number | symbol): interfaces.BindingOnSyntax<T>;
|
|
7
|
-
whenTargetIsDefault(): interfaces.BindingOnSyntax<T>;
|
|
8
|
-
whenTargetTagged(tag: string | number | symbol, value: unknown): interfaces.BindingOnSyntax<T>;
|
|
9
|
-
whenInjectedInto(parent: NewableFunction | string): interfaces.BindingOnSyntax<T>;
|
|
10
|
-
whenParentNamed(name: string | number | symbol): interfaces.BindingOnSyntax<T>;
|
|
11
|
-
whenParentTagged(tag: string | number | symbol, value: unknown): interfaces.BindingOnSyntax<T>;
|
|
12
|
-
whenAnyAncestorIs(ancestor: NewableFunction | string): interfaces.BindingOnSyntax<T>;
|
|
13
|
-
whenNoAncestorIs(ancestor: NewableFunction | string): interfaces.BindingOnSyntax<T>;
|
|
14
|
-
whenAnyAncestorNamed(name: string | number | symbol): interfaces.BindingOnSyntax<T>;
|
|
15
|
-
whenNoAncestorNamed(name: string | number | symbol): interfaces.BindingOnSyntax<T>;
|
|
16
|
-
whenAnyAncestorTagged(tag: string | number | symbol, value: unknown): interfaces.BindingOnSyntax<T>;
|
|
17
|
-
whenNoAncestorTagged(tag: string | number | symbol, value: unknown): interfaces.BindingOnSyntax<T>;
|
|
18
|
-
whenAnyAncestorMatches(constraint: (request: interfaces.Request) => boolean): interfaces.BindingOnSyntax<T>;
|
|
19
|
-
whenNoAncestorMatches(constraint: (request: interfaces.Request) => boolean): interfaces.BindingOnSyntax<T>;
|
|
20
|
-
}
|
|
21
|
-
export { BindingWhenSyntax };
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
define(["require", "exports", "./binding_on_syntax", "./constraint_helpers"], function (require, exports, binding_on_syntax_1, constraint_helpers_1) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.BindingWhenSyntax = void 0;
|
|
5
|
-
var BindingWhenSyntax = (function () {
|
|
6
|
-
function BindingWhenSyntax(binding) {
|
|
7
|
-
this._binding = binding;
|
|
8
|
-
}
|
|
9
|
-
BindingWhenSyntax.prototype.when = function (constraint) {
|
|
10
|
-
this._binding.constraint = constraint;
|
|
11
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
12
|
-
};
|
|
13
|
-
BindingWhenSyntax.prototype.whenTargetNamed = function (name) {
|
|
14
|
-
this._binding.constraint = (0, constraint_helpers_1.namedConstraint)(name);
|
|
15
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
16
|
-
};
|
|
17
|
-
BindingWhenSyntax.prototype.whenTargetIsDefault = function () {
|
|
18
|
-
this._binding.constraint = function (request) {
|
|
19
|
-
if (request === null) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
var targetIsDefault = request.target !== null &&
|
|
23
|
-
!request.target.isNamed() &&
|
|
24
|
-
!request.target.isTagged();
|
|
25
|
-
return targetIsDefault;
|
|
26
|
-
};
|
|
27
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
28
|
-
};
|
|
29
|
-
BindingWhenSyntax.prototype.whenTargetTagged = function (tag, value) {
|
|
30
|
-
this._binding.constraint = (0, constraint_helpers_1.taggedConstraint)(tag)(value);
|
|
31
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
32
|
-
};
|
|
33
|
-
BindingWhenSyntax.prototype.whenInjectedInto = function (parent) {
|
|
34
|
-
this._binding.constraint = function (request) {
|
|
35
|
-
return request !== null && (0, constraint_helpers_1.typeConstraint)(parent)(request.parentRequest);
|
|
36
|
-
};
|
|
37
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
38
|
-
};
|
|
39
|
-
BindingWhenSyntax.prototype.whenParentNamed = function (name) {
|
|
40
|
-
this._binding.constraint = function (request) {
|
|
41
|
-
return request !== null && (0, constraint_helpers_1.namedConstraint)(name)(request.parentRequest);
|
|
42
|
-
};
|
|
43
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
44
|
-
};
|
|
45
|
-
BindingWhenSyntax.prototype.whenParentTagged = function (tag, value) {
|
|
46
|
-
this._binding.constraint = function (request) {
|
|
47
|
-
return request !== null && (0, constraint_helpers_1.taggedConstraint)(tag)(value)(request.parentRequest);
|
|
48
|
-
};
|
|
49
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
50
|
-
};
|
|
51
|
-
BindingWhenSyntax.prototype.whenAnyAncestorIs = function (ancestor) {
|
|
52
|
-
this._binding.constraint = function (request) {
|
|
53
|
-
return request !== null && (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.typeConstraint)(ancestor));
|
|
54
|
-
};
|
|
55
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
56
|
-
};
|
|
57
|
-
BindingWhenSyntax.prototype.whenNoAncestorIs = function (ancestor) {
|
|
58
|
-
this._binding.constraint = function (request) {
|
|
59
|
-
return request !== null &&
|
|
60
|
-
!(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.typeConstraint)(ancestor));
|
|
61
|
-
};
|
|
62
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
63
|
-
};
|
|
64
|
-
BindingWhenSyntax.prototype.whenAnyAncestorNamed = function (name) {
|
|
65
|
-
this._binding.constraint = function (request) {
|
|
66
|
-
return request !== null && (0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.namedConstraint)(name));
|
|
67
|
-
};
|
|
68
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
69
|
-
};
|
|
70
|
-
BindingWhenSyntax.prototype.whenNoAncestorNamed = function (name) {
|
|
71
|
-
this._binding.constraint = function (request) {
|
|
72
|
-
return request !== null && !(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.namedConstraint)(name));
|
|
73
|
-
};
|
|
74
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
75
|
-
};
|
|
76
|
-
BindingWhenSyntax.prototype.whenAnyAncestorTagged = function (tag, value) {
|
|
77
|
-
this._binding.constraint = function (request) {
|
|
78
|
-
return request !== null &&
|
|
79
|
-
(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.taggedConstraint)(tag)(value));
|
|
80
|
-
};
|
|
81
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
82
|
-
};
|
|
83
|
-
BindingWhenSyntax.prototype.whenNoAncestorTagged = function (tag, value) {
|
|
84
|
-
this._binding.constraint = function (request) {
|
|
85
|
-
return request !== null &&
|
|
86
|
-
!(0, constraint_helpers_1.traverseAncerstors)(request, (0, constraint_helpers_1.taggedConstraint)(tag)(value));
|
|
87
|
-
};
|
|
88
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
89
|
-
};
|
|
90
|
-
BindingWhenSyntax.prototype.whenAnyAncestorMatches = function (constraint) {
|
|
91
|
-
this._binding.constraint = function (request) {
|
|
92
|
-
return request !== null &&
|
|
93
|
-
(0, constraint_helpers_1.traverseAncerstors)(request, constraint);
|
|
94
|
-
};
|
|
95
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
96
|
-
};
|
|
97
|
-
BindingWhenSyntax.prototype.whenNoAncestorMatches = function (constraint) {
|
|
98
|
-
this._binding.constraint = function (request) {
|
|
99
|
-
return request !== null &&
|
|
100
|
-
!(0, constraint_helpers_1.traverseAncerstors)(request, constraint);
|
|
101
|
-
};
|
|
102
|
-
return new binding_on_syntax_1.BindingOnSyntax(this._binding);
|
|
103
|
-
};
|
|
104
|
-
return BindingWhenSyntax;
|
|
105
|
-
}());
|
|
106
|
-
exports.BindingWhenSyntax = BindingWhenSyntax;
|
|
107
|
-
});
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
-
if (k2 === undefined) k2 = k;
|
|
3
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(o, k2, desc);
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
define(["require", "exports", "../constants/metadata_keys", "../planning/metadata"], function (require, exports, METADATA_KEY, metadata_1) {
|
|
25
|
-
"use strict";
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.typeConstraint = exports.namedConstraint = exports.taggedConstraint = exports.traverseAncerstors = void 0;
|
|
28
|
-
METADATA_KEY = __importStar(METADATA_KEY);
|
|
29
|
-
var traverseAncerstors = function (request, constraint) {
|
|
30
|
-
var parent = request.parentRequest;
|
|
31
|
-
if (parent !== null) {
|
|
32
|
-
return constraint(parent) ? true : traverseAncerstors(parent, constraint);
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return false;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.traverseAncerstors = traverseAncerstors;
|
|
39
|
-
var taggedConstraint = function (key) { return function (value) {
|
|
40
|
-
var constraint = function (request) {
|
|
41
|
-
return request !== null &&
|
|
42
|
-
request.target !== null &&
|
|
43
|
-
request.target.matchesTag(key)(value);
|
|
44
|
-
};
|
|
45
|
-
constraint.metaData = new metadata_1.Metadata(key, value);
|
|
46
|
-
return constraint;
|
|
47
|
-
}; };
|
|
48
|
-
exports.taggedConstraint = taggedConstraint;
|
|
49
|
-
var namedConstraint = taggedConstraint(METADATA_KEY.NAMED_TAG);
|
|
50
|
-
exports.namedConstraint = namedConstraint;
|
|
51
|
-
var typeConstraint = function (type) { return function (request) {
|
|
52
|
-
var binding = null;
|
|
53
|
-
if (request !== null) {
|
|
54
|
-
binding = request.bindings[0];
|
|
55
|
-
if (typeof type === 'string') {
|
|
56
|
-
return binding.serviceIdentifier === type;
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
var constructor = request.bindings[0].implementationType;
|
|
60
|
-
return type === constructor;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return false;
|
|
64
|
-
}; };
|
|
65
|
-
exports.typeConstraint = typeConstraint;
|
|
66
|
-
});
|
package/amd/utils/async.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
define(["require", "exports"], function (require, exports) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.isPromise = isPromise;
|
|
5
|
-
exports.isPromiseOrContainsPromise = isPromiseOrContainsPromise;
|
|
6
|
-
function isPromise(object) {
|
|
7
|
-
var isObjectOrFunction = (typeof object === 'object' && object !== null) ||
|
|
8
|
-
typeof object === 'function';
|
|
9
|
-
return (isObjectOrFunction && typeof object.then === 'function');
|
|
10
|
-
}
|
|
11
|
-
function isPromiseOrContainsPromise(object) {
|
|
12
|
-
if (isPromise(object)) {
|
|
13
|
-
return true;
|
|
14
|
-
}
|
|
15
|
-
return Array.isArray(object) && object.some(isPromise);
|
|
16
|
-
}
|
|
17
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { interfaces } from '../interfaces/interfaces';
|
|
2
|
-
export declare const multiBindToService: (container: interfaces.Container) => (service: interfaces.ServiceIdentifier) => (...types: interfaces.ServiceIdentifier[]) => void;
|
|
3
|
-
export declare const ensureFullyBound: <T = unknown>(binding: interfaces.Binding<T>) => void;
|
|
4
|
-
export declare const getFactoryDetails: <T = unknown>(binding: interfaces.Binding<T>) => interfaces.FactoryDetails;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
-
if (k2 === undefined) k2 = k;
|
|
3
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(o, k2, desc);
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
define(["require", "exports", "../constants/error_msgs", "../constants/literal_types", "../utils/serialization", "./factory_type"], function (require, exports, ERROR_MSGS, literal_types_1, serialization_1, factory_type_1) {
|
|
25
|
-
"use strict";
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.getFactoryDetails = exports.ensureFullyBound = exports.multiBindToService = void 0;
|
|
28
|
-
ERROR_MSGS = __importStar(ERROR_MSGS);
|
|
29
|
-
var multiBindToService = function (container) {
|
|
30
|
-
return function (service) {
|
|
31
|
-
return function () {
|
|
32
|
-
var types = [];
|
|
33
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
34
|
-
types[_i] = arguments[_i];
|
|
35
|
-
}
|
|
36
|
-
types.forEach(function (t) {
|
|
37
|
-
container.bind(t).toService(service);
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
exports.multiBindToService = multiBindToService;
|
|
43
|
-
var ensureFullyBound = function (binding) {
|
|
44
|
-
var boundValue = null;
|
|
45
|
-
switch (binding.type) {
|
|
46
|
-
case literal_types_1.BindingTypeEnum.ConstantValue:
|
|
47
|
-
case literal_types_1.BindingTypeEnum.Function:
|
|
48
|
-
boundValue = binding.cache;
|
|
49
|
-
break;
|
|
50
|
-
case literal_types_1.BindingTypeEnum.Constructor:
|
|
51
|
-
case literal_types_1.BindingTypeEnum.Instance:
|
|
52
|
-
boundValue = binding.implementationType;
|
|
53
|
-
break;
|
|
54
|
-
case literal_types_1.BindingTypeEnum.DynamicValue:
|
|
55
|
-
boundValue = binding.dynamicValue;
|
|
56
|
-
break;
|
|
57
|
-
case literal_types_1.BindingTypeEnum.Provider:
|
|
58
|
-
boundValue = binding.provider;
|
|
59
|
-
break;
|
|
60
|
-
case literal_types_1.BindingTypeEnum.Factory:
|
|
61
|
-
boundValue = binding.factory;
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
if (boundValue === null) {
|
|
65
|
-
var serviceIdentifierAsString = (0, serialization_1.getServiceIdentifierAsString)(binding.serviceIdentifier);
|
|
66
|
-
throw new Error("".concat(ERROR_MSGS.INVALID_BINDING_TYPE, " ").concat(serviceIdentifierAsString));
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
exports.ensureFullyBound = ensureFullyBound;
|
|
70
|
-
var getFactoryDetails = function (binding) {
|
|
71
|
-
switch (binding.type) {
|
|
72
|
-
case literal_types_1.BindingTypeEnum.Factory:
|
|
73
|
-
return { factory: binding.factory, factoryType: factory_type_1.FactoryType.Factory };
|
|
74
|
-
case literal_types_1.BindingTypeEnum.Provider:
|
|
75
|
-
return { factory: binding.provider, factoryType: factory_type_1.FactoryType.Provider };
|
|
76
|
-
case literal_types_1.BindingTypeEnum.DynamicValue:
|
|
77
|
-
return {
|
|
78
|
-
factory: binding.dynamicValue,
|
|
79
|
-
factoryType: factory_type_1.FactoryType.DynamicValue,
|
|
80
|
-
};
|
|
81
|
-
default:
|
|
82
|
-
throw new Error("Unexpected factory type ".concat(binding.type));
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
exports.getFactoryDetails = getFactoryDetails;
|
|
86
|
-
});
|
package/amd/utils/clonable.d.ts
DELETED
package/amd/utils/clonable.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
define(["require", "exports"], function (require, exports) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.isClonable = isClonable;
|
|
5
|
-
function isClonable(obj) {
|
|
6
|
-
return (typeof obj === 'object' &&
|
|
7
|
-
obj !== null &&
|
|
8
|
-
'clone' in obj &&
|
|
9
|
-
typeof obj.clone === 'function');
|
|
10
|
-
}
|
|
11
|
-
});
|
package/amd/utils/exceptions.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
-
if (k2 === undefined) k2 = k;
|
|
3
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(o, k2, desc);
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
define(["require", "exports", "../constants/error_msgs"], function (require, exports, ERROR_MSGS) {
|
|
25
|
-
"use strict";
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.tryAndThrowErrorIfStackOverflow = void 0;
|
|
28
|
-
exports.isStackOverflowException = isStackOverflowException;
|
|
29
|
-
ERROR_MSGS = __importStar(ERROR_MSGS);
|
|
30
|
-
function isStackOverflowException(error) {
|
|
31
|
-
return (error instanceof RangeError ||
|
|
32
|
-
error.message === ERROR_MSGS.STACK_OVERFLOW);
|
|
33
|
-
}
|
|
34
|
-
var tryAndThrowErrorIfStackOverflow = function (fn, errorCallback) {
|
|
35
|
-
try {
|
|
36
|
-
return fn();
|
|
37
|
-
}
|
|
38
|
-
catch (error) {
|
|
39
|
-
if (isStackOverflowException(error)) {
|
|
40
|
-
throw errorCallback();
|
|
41
|
-
}
|
|
42
|
-
throw error;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
exports.tryAndThrowErrorIfStackOverflow = tryAndThrowErrorIfStackOverflow;
|
|
46
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
define(["require", "exports"], function (require, exports) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.FactoryType = void 0;
|
|
5
|
-
var FactoryType;
|
|
6
|
-
(function (FactoryType) {
|
|
7
|
-
FactoryType["DynamicValue"] = "toDynamicValue";
|
|
8
|
-
FactoryType["Factory"] = "toFactory";
|
|
9
|
-
FactoryType["Provider"] = "toProvider";
|
|
10
|
-
})(FactoryType || (exports.FactoryType = FactoryType = {}));
|
|
11
|
-
});
|
package/amd/utils/id.js
DELETED
package/amd/utils/js.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
define(["require", "exports"], function (require, exports) {
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getFirstArrayDuplicate = getFirstArrayDuplicate;
|
|
5
|
-
function getFirstArrayDuplicate(array) {
|
|
6
|
-
var seenValues = new Set();
|
|
7
|
-
for (var _i = 0, array_1 = array; _i < array_1.length; _i++) {
|
|
8
|
-
var entry = array_1[_i];
|
|
9
|
-
if (seenValues.has(entry)) {
|
|
10
|
-
return entry;
|
|
11
|
-
}
|
|
12
|
-
else {
|
|
13
|
-
seenValues.add(entry);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
return undefined;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
|
-
if (k2 === undefined) k2 = k;
|
|
3
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
-
}
|
|
7
|
-
Object.defineProperty(o, k2, desc);
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
define(["require", "exports", "../constants/error_msgs"], function (require, exports, ERROR_MSGS) {
|
|
25
|
-
"use strict";
|
|
26
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.getFunctionName = getFunctionName;
|
|
28
|
-
exports.getServiceIdentifierAsString = getServiceIdentifierAsString;
|
|
29
|
-
exports.listRegisteredBindingsForServiceIdentifier = listRegisteredBindingsForServiceIdentifier;
|
|
30
|
-
exports.listMetadataForTarget = listMetadataForTarget;
|
|
31
|
-
exports.circularDependencyToException = circularDependencyToException;
|
|
32
|
-
exports.getSymbolDescription = getSymbolDescription;
|
|
33
|
-
ERROR_MSGS = __importStar(ERROR_MSGS);
|
|
34
|
-
function getServiceIdentifierAsString(serviceIdentifier) {
|
|
35
|
-
if (typeof serviceIdentifier === 'function') {
|
|
36
|
-
return serviceIdentifier.name;
|
|
37
|
-
}
|
|
38
|
-
else if (typeof serviceIdentifier === 'symbol') {
|
|
39
|
-
return serviceIdentifier.toString();
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return serviceIdentifier;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function listRegisteredBindingsForServiceIdentifier(container, serviceIdentifier, getBindings) {
|
|
46
|
-
var registeredBindingsList = '';
|
|
47
|
-
var registeredBindings = getBindings(container, serviceIdentifier);
|
|
48
|
-
if (registeredBindings.length !== 0) {
|
|
49
|
-
registeredBindingsList = '\nRegistered bindings:';
|
|
50
|
-
registeredBindings.forEach(function (binding) {
|
|
51
|
-
var name = 'Object';
|
|
52
|
-
if (binding.implementationType !== null) {
|
|
53
|
-
name = getFunctionName(binding.implementationType);
|
|
54
|
-
}
|
|
55
|
-
registeredBindingsList = "".concat(registeredBindingsList, "\n ").concat(name);
|
|
56
|
-
if (binding.constraint.metaData) {
|
|
57
|
-
registeredBindingsList = "".concat(registeredBindingsList, " - ").concat(binding.constraint.metaData);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
return registeredBindingsList;
|
|
62
|
-
}
|
|
63
|
-
function alreadyDependencyChain(request, serviceIdentifier) {
|
|
64
|
-
if (request.parentRequest === null) {
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
else if (request.parentRequest.serviceIdentifier === serviceIdentifier) {
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return alreadyDependencyChain(request.parentRequest, serviceIdentifier);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function dependencyChainToString(request) {
|
|
75
|
-
function _createStringArr(req, result) {
|
|
76
|
-
if (result === void 0) { result = []; }
|
|
77
|
-
var serviceIdentifier = getServiceIdentifierAsString(req.serviceIdentifier);
|
|
78
|
-
result.push(serviceIdentifier);
|
|
79
|
-
if (req.parentRequest !== null) {
|
|
80
|
-
return _createStringArr(req.parentRequest, result);
|
|
81
|
-
}
|
|
82
|
-
return result;
|
|
83
|
-
}
|
|
84
|
-
var stringArr = _createStringArr(request);
|
|
85
|
-
return stringArr.reverse().join(' --> ');
|
|
86
|
-
}
|
|
87
|
-
function circularDependencyToException(request) {
|
|
88
|
-
request.childRequests.forEach(function (childRequest) {
|
|
89
|
-
if (alreadyDependencyChain(request, childRequest.serviceIdentifier)) {
|
|
90
|
-
var services = dependencyChainToString(childRequest);
|
|
91
|
-
throw new Error("".concat(ERROR_MSGS.CIRCULAR_DEPENDENCY, " ").concat(services));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
circularDependencyToException(childRequest);
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
function listMetadataForTarget(serviceIdentifierString, target) {
|
|
99
|
-
if (target.isTagged() || target.isNamed()) {
|
|
100
|
-
var m_1 = '';
|
|
101
|
-
var namedTag = target.getNamedTag();
|
|
102
|
-
var otherTags = target.getCustomTags();
|
|
103
|
-
if (namedTag !== null) {
|
|
104
|
-
m_1 += stringifyMetadata(namedTag) + '\n';
|
|
105
|
-
}
|
|
106
|
-
if (otherTags !== null) {
|
|
107
|
-
otherTags.forEach(function (tag) {
|
|
108
|
-
m_1 += stringifyMetadata(tag) + '\n';
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
return " ".concat(serviceIdentifierString, "\n ").concat(serviceIdentifierString, " - ").concat(m_1);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return " ".concat(serviceIdentifierString);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
function getFunctionName(func) {
|
|
118
|
-
if (func.name != null && func.name !== '') {
|
|
119
|
-
return func.name;
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
var name_1 = func.toString();
|
|
123
|
-
var match = name_1.match(/^function\s*([^\s(]+)/);
|
|
124
|
-
return match === null
|
|
125
|
-
? "Anonymous function: ".concat(name_1)
|
|
126
|
-
: match[1];
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
function getSymbolDescription(symbol) {
|
|
130
|
-
return symbol.toString().slice(7, -1);
|
|
131
|
-
}
|
|
132
|
-
function stringifyMetadata(metadata) {
|
|
133
|
-
return "{\"key\":\"".concat(metadata.key.toString(), "\",\"value\":\"").concat(metadata.value.toString(), "\"}");
|
|
134
|
-
}
|
|
135
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { interfaces } from '../interfaces/interfaces';
|
|
2
|
-
type Prototype<T> = {
|
|
3
|
-
[Property in keyof T]: T[Property] extends NewableFunction ? T[Property] : T[Property] | undefined;
|
|
4
|
-
} & {
|
|
5
|
-
constructor: NewableFunction;
|
|
6
|
-
};
|
|
7
|
-
interface ConstructorFunction<T = Record<string, unknown>> {
|
|
8
|
-
prototype: Prototype<T>;
|
|
9
|
-
new (...args: unknown[]): T;
|
|
10
|
-
}
|
|
11
|
-
export type DecoratorTarget<T = unknown> = ConstructorFunction<T> | Prototype<T>;
|
|
12
|
-
declare function tagParameter(annotationTarget: DecoratorTarget, parameterName: string | symbol | undefined, parameterIndex: number, metadata: interfaces.MetadataOrMetadataArray): void;
|
|
13
|
-
declare function tagProperty(annotationTarget: DecoratorTarget, propertyName: string | symbol, metadata: interfaces.MetadataOrMetadataArray): void;
|
|
14
|
-
declare function createTaggedDecorator(metadata: interfaces.MetadataOrMetadataArray): <T>(target: DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
|
|
15
|
-
declare function decorate(decorator: DecoratorTarget | ParameterDecorator | MethodDecorator, target: object, parameterIndexOrProperty?: number | string): void;
|
|
16
|
-
export { decorate, tagParameter, tagProperty, createTaggedDecorator };
|