From 46e43f4bde4a35785b4997b81e86cd19f046b69b Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 21 Dec 2021 16:52:28 +0100 Subject: Commit --- .../inversify/dts/constants/error_msgs.d.ts | 27 ++++++++++++++++++++++ .../inversify/dts/constants/literal_types.d.ts | 5 ++++ .../inversify/dts/constants/metadata_keys.d.ts | 11 +++++++++ 3 files changed, 43 insertions(+) create mode 100644 src/node_modules/inversify/dts/constants/error_msgs.d.ts create mode 100644 src/node_modules/inversify/dts/constants/literal_types.d.ts create mode 100644 src/node_modules/inversify/dts/constants/metadata_keys.d.ts (limited to 'src/node_modules/inversify/dts/constants') diff --git a/src/node_modules/inversify/dts/constants/error_msgs.d.ts b/src/node_modules/inversify/dts/constants/error_msgs.d.ts new file mode 100644 index 0000000..81d3c82 --- /dev/null +++ b/src/node_modules/inversify/dts/constants/error_msgs.d.ts @@ -0,0 +1,27 @@ +export declare const DUPLICATED_INJECTABLE_DECORATOR = "Cannot apply @injectable decorator multiple times."; +export declare const DUPLICATED_METADATA = "Metadata key was used more than once in a parameter:"; +export declare const NULL_ARGUMENT = "NULL argument"; +export declare const KEY_NOT_FOUND = "Key Not Found"; +export declare const AMBIGUOUS_MATCH = "Ambiguous match found for serviceIdentifier:"; +export declare const CANNOT_UNBIND = "Could not unbind serviceIdentifier:"; +export declare const NOT_REGISTERED = "No matching bindings found for serviceIdentifier:"; +export declare const MISSING_INJECTABLE_ANNOTATION = "Missing required @injectable annotation in:"; +export declare const MISSING_INJECT_ANNOTATION = "Missing required @inject or @multiInject annotation in:"; +export declare const UNDEFINED_INJECT_ANNOTATION: (name: string) => string; +export declare const CIRCULAR_DEPENDENCY = "Circular dependency found:"; +export declare const NOT_IMPLEMENTED = "Sorry, this feature is not fully implemented yet."; +export declare const INVALID_BINDING_TYPE = "Invalid binding type:"; +export declare const NO_MORE_SNAPSHOTS_AVAILABLE = "No snapshot available to restore."; +export declare const INVALID_MIDDLEWARE_RETURN = "Invalid return type in middleware. Middleware must return!"; +export declare const INVALID_FUNCTION_BINDING = "Value provided to function binding must be a function!"; +export declare const INVALID_TO_SELF_VALUE: string; +export declare const INVALID_DECORATOR_OPERATION: string; +export declare const ARGUMENTS_LENGTH_MISMATCH: (...values: any[]) => string; +export declare const CONTAINER_OPTIONS_MUST_BE_AN_OBJECT: string; +export declare const CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE: string; +export declare const CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE: string; +export declare const CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK: string; +export declare const MULTIPLE_POST_CONSTRUCT_METHODS = "Cannot apply @postConstruct decorator multiple times in the same class"; +export declare const POST_CONSTRUCT_ERROR: (...values: any[]) => string; +export declare const CIRCULAR_DEPENDENCY_IN_FACTORY: (...values: any[]) => string; +export declare const STACK_OVERFLOW = "Maximum call stack size exceeded"; diff --git a/src/node_modules/inversify/dts/constants/literal_types.d.ts b/src/node_modules/inversify/dts/constants/literal_types.d.ts new file mode 100644 index 0000000..4fdb2ec --- /dev/null +++ b/src/node_modules/inversify/dts/constants/literal_types.d.ts @@ -0,0 +1,5 @@ +import { interfaces } from "../interfaces/interfaces"; +declare const BindingScopeEnum: interfaces.BindingScopeEnum; +declare const BindingTypeEnum: interfaces.BindingTypeEnum; +declare const TargetTypeEnum: interfaces.TargetTypeEnum; +export { BindingScopeEnum, BindingTypeEnum, TargetTypeEnum }; diff --git a/src/node_modules/inversify/dts/constants/metadata_keys.d.ts b/src/node_modules/inversify/dts/constants/metadata_keys.d.ts new file mode 100644 index 0000000..f6bfaac --- /dev/null +++ b/src/node_modules/inversify/dts/constants/metadata_keys.d.ts @@ -0,0 +1,11 @@ +export declare const NAMED_TAG = "named"; +export declare const NAME_TAG = "name"; +export declare const UNMANAGED_TAG = "unmanaged"; +export declare const OPTIONAL_TAG = "optional"; +export declare const INJECT_TAG = "inject"; +export declare const MULTI_INJECT_TAG = "multi_inject"; +export declare const TAGGED = "inversify:tagged"; +export declare const TAGGED_PROP = "inversify:tagged_props"; +export declare const PARAM_TYPES = "inversify:paramtypes"; +export declare const DESIGN_PARAM_TYPES = "design:paramtypes"; +export declare const POST_CONSTRUCT = "post_construct"; -- cgit