diff --git a/assets/navigation.js b/assets/navigation.js index f3ad811..42b662f 100644 --- a/assets/navigation.js +++ b/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA5WWTW+cMBCG/4vPqPlQsmn32qTVHtpD0ltUIWRmg1vWRsYbbVLlv9fAAsaesYy4wczzvmbGYz//YwZOhm0Zr4u2hfbi15OQf+DEMtYUprIfDqo81vbDOSA/B3yqzKG2UX+FLNn2OmO8EnWpQbLt8wQNYKOKD0OhV9efP35/ZBOtBK50YZRuGS63swxuQutzYj6EJJn3afuj5EYoifEw7OZm4f4RXkRrQEftjUFJBkMianFi4nDC5k62ppAckuyOwatshwpR+5NGXHRzkw1d1jdMo4EXBkpm1+iuclIiOkmTxZoyc72mViFwXiyCxNleqTS0qn5FKuQC+5BEix4OdzgAUXDvz3VYQd2AvtgdmhoOIE37ZAojeOh4CMz9wLR9StLnBVD8uKD3v+07bDD2rz2niyxbx33Bgeq1hxOHZmzGgD0m53NY0l+5hwasMcnfHrtSHbvMB62V04HjMMZFSEA4pDNnZgojilq8F6v1kNS4UjdxlV6p4STF6D/VMF2soy7zB5hKlaukaEJM93wOrlJyc+IH6G6uabTVnLi0HYhxZx6FpmVuN0vf5KXEJa+5mIREwu4IJejWaGgzPJcT4cTpT4h40zpZAzsRUIl8NTzH6uhW0rw15Bz8DhK04F+VNPrY7dKw3H16HgQmlfyb0hxsThvQeyrJ9vM8scsvd1e37ryfCWuVwkxca7E17PYxYi+wq8qgM0ek7QwE6Np2cCQZ82mn+z3U8GJvY6RTJybxho5BF25dZIQ/ObbPf95ZlaEUDQAA" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA5WXTW+cMBCG/4vPqPlQsmn32qTVHtpD0ltUIWRmg1vWRsYbbVLlv9fAAsaesYz2BjPP+5qZsb3P/5iBk2FbxuuibaG9+PUk5B84sYw1hansi4Mqj7V9cQ7IzwGfKnOobdRfIUu2vc4Yr0RdapBs+zxBA9io4sNQ6NX154/fH9lEK4ErXRilW4bL7SyDm9D6nJgPIUnmfdr+KLkRSmI8DLu5Wbh/hBfRGtBRe2NQksGQiFqcmDicsLmTrSkkhyS7Y/Aq26FC1P6kERfd3GRDl/UN02jghYGS2TW6q5yUiE4SRCdNeblIbyQfNi8zwGFUr0Ca7KOZpte0UQjEDE5InB2YbFX9ijSPC+xDEi16ONzhAETBvT/XYQV1A/pid2hqOIA07ZMpjOCh4yEw9wPTthCSPi+A4scFve9tn2F7dv/Yc7rIsnXcFxyoMXg4cWjGOQnYY3I+hyV9lXtowBqT/O2xK9Wxy3zQWjkdOJ4TuAgJCM+PzNnOhRFFLd6L1XpIalypG2KlV2o4STH6TzVsfNZRl/kDTKXKVVI0IaZ7PqJXKbk58bN9N9c02mpOXNoEYtyZR6FpmdvN0jd5X3LJa+5MIZGwO0IJujUa2gyvDIlw4mJCiHi7dbIGdiKgEvlqeI7V0a2keWvIffA7SNCCf1XS6GM3pWG5+/Q8CEwq+TelOdicNqD3VJLt53lil1/urm7d/X4mrFUKM3GtxWjY8TFiL7CryqAzR6RNBgJ0bTs4koz5tLv7PdTwYi+KpFMnJvHPAwZduHWREf7k2P7+A7hG68ivDQAA" \ No newline at end of file diff --git a/assets/search.js b/assets/search.js index 514cf40..7a2da80 100644 --- a/assets/search.js +++ b/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA82cS3PqyBWA/wvecjH9Bm8zk5QXyeJOKhuXi6JA11cTDC6Qb2bi8n9PS2rR53BOixZ44llhQZ9nf336Iclvo/3uP4fR3cPb6N/ldj26k+PRdvlcjO5G/rL4bTQeve43/up5t37dFIfb5tvJ9+p5439abZaHQ+HFR6P3MdUQfr795y/l9ldGV/h9EX7v1Srk7Kj3VF9n51RfWu949LLcF9uKcRKYnEp9tLkot4dquV0Vg6zeQLFovzqsv5SHLy/78seyKnq8mVCv5FTHTDwV1f1FfmHBrMyc82VfPJWHqtgPc6ST+iI/z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615UVztsRQui+GyDVxc7bGULYvZss1ukK09lsJlMVzWpLNF6bInm8JmRmQNM9tCTJdt1lq815Qui+mys9RwshQui+GyzVKLLbeWwmUxXK6Bi10hOgqXw3A5kRrIjsLlMFxOpiJ2FC6H4XIqOTk5SpfDdDmdLPSO0uUwXc4ki7WjdDlMl7PJgusoXu7k2MElB4VjTh4wXm6WrHyO8uUwXy5dvBzlK3zVHIb9KPZVsb5vD8UeHo73Yd7ql32bL/1ADUdzbyO/mb97ex+P/P64/XThc9Z++n1g+xmuTfj0Fa/9NPXnezxZa749Hq7Vv9WenrxjGX2ZRVdmeZriq8dRi4paVJaW7lHH6hAOcEF2QHLydMHTyqjHRT0hpyrkUoWcKxM+u9/nWfbA6zhluJcUrc6B93nuA3XxTgVIhwQa9aUauU4ToNdEbujxecaoSIJU+5X8MEX741PlRftsLtALUFDZeo9PMwJFgHKdB+i3+hw8QVa8yfo2MvNWgctLIPfiFegRExXLvICZN56APuCozGPnqb3tkIocOGjCqHF5deOpqDgINeiZVlLbLH3hDZ3yeCPyEG5EgvABlzJPawkeSABhA35sXr+UiaECekTn1YfeCIFjsuuPaZ7a9v9wRF3TqCpXQ1mtjzfFQJcCTTZ0qnPZKuMD6bQgAFpUHna0QgvgnpBhFs11r32jgzoGirTKG2jgObMCvBMG/ARTicyrLvDBuAR/YADr3G6OSpnpWgI3dWbojBoFJiMT5meXOWaDugXSB3pZh3ne5ZX+Th9XoRWYknRX+odFzdRpBfAxYZHi8hZ2210J34d5bt6HoXzCBVpeVrnoYfVvxUIKRLiUoed0qEUmrFJNKAM2rF5dXhHtXb2AWiC7xXDeMGF6AJTlbiEedMoQmu4W4KFkmA6qvCrOjRwQQPA/r2uCLtrLgHmVN7jbZ7nipM/N+SDRJtPBRmtiLgWTss3MXasuMd0oUIBsxgj3m7SX8qXYlFsv8vD4/v4/FSskYa1KAAA="; \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA82bS3PiSBKA/wu+0ph6Q193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sU4HplTKrAAXc1Imhc2pAQTBh2neJYzeoWyF9AEYdlg8ubUZp9XGVWoGZzoQZxY2LmqnXCuBjApIubb24P+TwnZ/n+p0fyifIrkrLKhc9GIahi0LtEeFShk8dvjdhnJm2HIRFsUsrpoOLIhCSbNWmDROmB8CwaNf3QacM8JhwbcJ0ZVqo0qo5gzxAqd0jpHVN0EV7GTCv0gZ387xaP/lzcz/s9UQHa62RORVMzjYxd4262LQDCpBNGOF+7/eSv2S7fO9FHp/e3/8HysgYu11MAAA="; \ No newline at end of file diff --git a/classes/classes_TSinjex.TSinjex.html b/classes/classes_TSinjex.TSinjex.html index 9b360a6..799635a 100644 --- a/classes/classes_TSinjex.TSinjex.html +++ b/classes/classes_TSinjex.TSinjex.html @@ -1,4 +1,4 @@ -TSinjex | ts-injex - v0.4.0

TSinjex

The main class for the Dependency Injection Container TSinjex.

+TSinjex | ts-injex - v1.0.0

TSinjex

The main class for the Dependency Injection Container TSinjex.

  • Register for registering a class in the DI container.
  • RegisterInstance for registering an instance in the DI container.
  • @@ -9,7 +9,7 @@
  • register for registering a dependency (class or instance) as a function.
  • resolve for resolving a dependency as a function.
-

Implements

Constructors

Implements

Constructors

Properties

Methods

register @@ -18,22 +18,22 @@ register resolve

Constructors

Properties

_dependencies: Map<Identifier, IDependency> = ...

The dependencies map.

-
_instance: TSinjex

The singleton instance of the TSinjex class.

-

Methods

Properties

_dependencies: Map<Identifier, IDependency> = ...

The dependencies map.

+
_instance: TSinjex

The singleton instance of the TSinjex class.

+

Methods

  • Register a dependency.

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier of the dependency.

    • dependency: T

      The dependency to register.

    • deprecated: boolean = false

      If true, the dependency is deprecated => a warning is logged when the dependency is resolved.

      -

    Returns void

  • Resolve a dependency

    +

Returns void

  • Resolve a dependency

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier of the dependency

    • necessary: boolean = true

      If true, throws an error if the dependency is not found

    Returns undefined | T

    The resolved dependency or undefined if the dependency is not found

    A DependencyResolutionError if the dependency is not found and necessary.

    -
+
diff --git a/classes/interfaces_Exceptions.DependencyResolutionError.html b/classes/interfaces_Exceptions.DependencyResolutionError.html index 2db4579..dbff12e 100644 --- a/classes/interfaces_Exceptions.DependencyResolutionError.html +++ b/classes/interfaces_Exceptions.DependencyResolutionError.html @@ -1,6 +1,6 @@ -DependencyResolutionError | ts-injex - v0.4.0

Error class for dependency resolution errors in ITSinjex.

+DependencyResolutionError | ts-injex - v1.0.0

Error class for dependency resolution errors in ITSinjex.

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

message name stack? @@ -9,7 +9,7 @@

Methods

Constructors

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Returns DependencyResolutionError

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    -

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

+

Parameters

  • targetObject: object
  • OptionalconstructorOpt: Function

Returns void

diff --git a/classes/interfaces_Exceptions.InitializationError.html b/classes/interfaces_Exceptions.InitializationError.html index 2d4a015..7dd15a2 100644 --- a/classes/interfaces_Exceptions.InitializationError.html +++ b/classes/interfaces_Exceptions.InitializationError.html @@ -1,6 +1,6 @@ -InitializationError | ts-injex - v0.4.0

Error class for errors during the initialization of a dependency in ITSinjex.

+InitializationError | ts-injex - v1.0.0

Error class for errors during the initialization of a dependency in ITSinjex.

ITSinjex.inject

-

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

message name stack? @@ -10,7 +10,7 @@

Constructors

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Returns InitializationError

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    -

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

+

Parameters

  • targetObject: object
  • OptionalconstructorOpt: Function

Returns void

diff --git a/classes/interfaces_Exceptions.InjectorError.html b/classes/interfaces_Exceptions.InjectorError.html index f793654..7b194d9 100644 --- a/classes/interfaces_Exceptions.InjectorError.html +++ b/classes/interfaces_Exceptions.InjectorError.html @@ -1,6 +1,6 @@ -InjectorError | ts-injex - v0.4.0

Error class for Injector errors in ITSinjex.

+InjectorError | ts-injex - v1.0.0

Error class for Injector errors in ITSinjex.

ITSinjex.inject

-

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

message name stack? @@ -10,7 +10,7 @@

Constructors

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Returns InjectorError

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    -

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

+

Parameters

  • targetObject: object
  • OptionalconstructorOpt: Function

Returns void

diff --git a/classes/interfaces_Exceptions.NoInstantiationMethodError.html b/classes/interfaces_Exceptions.NoInstantiationMethodError.html index c82de2e..f29fe7a 100644 --- a/classes/interfaces_Exceptions.NoInstantiationMethodError.html +++ b/classes/interfaces_Exceptions.NoInstantiationMethodError.html @@ -1,6 +1,6 @@ -NoInstantiationMethodError | ts-injex - v0.4.0

Error class for missing instantiation methods in ITSinjex.

+NoInstantiationMethodError | ts-injex - v1.0.0

Error class for missing instantiation methods in ITSinjex.

ITSinjex.inject

-

Hierarchy (view full)

Constructors

Hierarchy (view full)

Constructors

Properties

message name stack? @@ -9,7 +9,7 @@

Methods

Constructors

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Returns NoInstantiationMethodError

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    -

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

+

Parameters

  • targetObject: object
  • OptionalconstructorOpt: Function

Returns void

diff --git a/classes/interfaces_Exceptions.TSinjexError.html b/classes/interfaces_Exceptions.TSinjexError.html index 71ce094..ddb0857 100644 --- a/classes/interfaces_Exceptions.TSinjexError.html +++ b/classes/interfaces_Exceptions.TSinjexError.html @@ -1,5 +1,5 @@ -TSinjexError | ts-injex - v0.4.0

General error class for ITSinjex interface.

-

Hierarchy (view full)

Constructors

constructor +TSinjexError | ts-injex - v1.0.0

General error class for ITSinjex interface.

+

Hierarchy (view full)

Constructors

Properties

message name stack? @@ -8,7 +8,7 @@

Methods

Constructors

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

+

Returns TSinjexError

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    -

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void

+

Parameters

Returns void

diff --git a/coverage/badges/badge-branches.svg b/coverage/badges/badge-branches.svg index 3e4c7ca..b7cabab 100644 --- a/coverage/badges/badge-branches.svg +++ b/coverage/badges/badge-branches.svg @@ -1 +1 @@ -branches: 91.22%branches91.22% \ No newline at end of file +branches: 90.78%branches90.78% \ No newline at end of file diff --git a/coverage/badges/badge-functions.svg b/coverage/badges/badge-functions.svg index c25da5e..1bcd39e 100644 --- a/coverage/badges/badge-functions.svg +++ b/coverage/badges/badge-functions.svg @@ -1 +1 @@ -functions: 96.77%functions96.77% \ No newline at end of file +functions: 97.29%functions97.29% \ No newline at end of file diff --git a/coverage/badges/badge-lines.svg b/coverage/badges/badge-lines.svg index cb98e3c..5c362fe 100644 --- a/coverage/badges/badge-lines.svg +++ b/coverage/badges/badge-lines.svg @@ -1 +1 @@ -lines: 96.96%lines96.96% \ No newline at end of file +lines: 97.52%lines97.52% \ No newline at end of file diff --git a/coverage/badges/badge-statements.svg b/coverage/badges/badge-statements.svg index 8a6c5c5..a441883 100644 --- a/coverage/badges/badge-statements.svg +++ b/coverage/badges/badge-statements.svg @@ -1 +1 @@ -statements: 97.08%statements97.08% \ No newline at end of file +statements: 96.87%statements96.87% \ No newline at end of file diff --git a/coverage/coverage-summary.json b/coverage/coverage-summary.json index 71f0197..57ba23e 100644 --- a/coverage/coverage-summary.json +++ b/coverage/coverage-summary.json @@ -1,8 +1,9 @@ -{"total": {"lines":{"total":99,"covered":96,"skipped":0,"pct":96.96},"statements":{"total":103,"covered":100,"skipped":0,"pct":97.08},"functions":{"total":31,"covered":30,"skipped":0,"pct":96.77},"branches":{"total":57,"covered":52,"skipped":0,"pct":91.22},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}} +{"total": {"lines":{"total":121,"covered":118,"skipped":0,"pct":97.52},"statements":{"total":128,"covered":124,"skipped":0,"pct":96.87},"functions":{"total":37,"covered":36,"skipped":0,"pct":97.29},"branches":{"total":76,"covered":69,"skipped":0,"pct":90.78},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}} ,"/home/runner/work/TSinjex/TSinjex/src/classes/TSinjex.ts": {"lines":{"total":19,"covered":19,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":21,"covered":21,"skipped":0,"pct":100},"branches":{"total":11,"covered":11,"skipped":0,"pct":100}} -,"/home/runner/work/TSinjex/TSinjex/src/decorators/Inject.ts": {"lines":{"total":29,"covered":28,"skipped":0,"pct":96.55},"functions":{"total":9,"covered":9,"skipped":0,"pct":100},"statements":{"total":30,"covered":29,"skipped":0,"pct":96.66},"branches":{"total":31,"covered":27,"skipped":0,"pct":87.09}} +,"/home/runner/work/TSinjex/TSinjex/src/decorators/Inject.ts": {"lines":{"total":29,"covered":28,"skipped":0,"pct":96.55},"functions":{"total":9,"covered":9,"skipped":0,"pct":100},"statements":{"total":30,"covered":29,"skipped":0,"pct":96.66},"branches":{"total":25,"covered":22,"skipped":0,"pct":88}} ,"/home/runner/work/TSinjex/TSinjex/src/decorators/Register.ts": {"lines":{"total":25,"covered":25,"skipped":0,"pct":100},"functions":{"total":8,"covered":8,"skipped":0,"pct":100},"statements":{"total":25,"covered":25,"skipped":0,"pct":100},"branches":{"total":11,"covered":10,"skipped":0,"pct":90.9}} ,"/home/runner/work/TSinjex/TSinjex/src/decorators/RegisterInstance.ts": {"lines":{"total":5,"covered":5,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":6,"covered":6,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}} +,"/home/runner/work/TSinjex/TSinjex/src/functions/inject.ts": {"lines":{"total":22,"covered":22,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":25,"covered":24,"skipped":0,"pct":96},"branches":{"total":25,"covered":22,"skipped":0,"pct":88}} ,"/home/runner/work/TSinjex/TSinjex/src/functions/register.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} ,"/home/runner/work/TSinjex/TSinjex/src/functions/resolve.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} ,"/home/runner/work/TSinjex/TSinjex/src/interfaces/Exceptions.ts": {"lines":{"total":15,"covered":13,"skipped":0,"pct":86.66},"functions":{"total":5,"covered":4,"skipped":0,"pct":80},"statements":{"total":15,"covered":13,"skipped":0,"pct":86.66},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} diff --git a/coverage/lcov-report/classes/TSinjex.ts.html b/coverage/lcov-report/classes/TSinjex.ts.html index 19f5067..99f5e35 100644 --- a/coverage/lcov-report/classes/TSinjex.ts.html +++ b/coverage/lcov-report/classes/TSinjex.ts.html @@ -223,7 +223,7 @@       -26x +36x       @@ -237,11 +237,11 @@       -53x -26x +73x +36x     -53x +73x       @@ -287,7 +287,7 @@       -21x +29x       @@ -297,36 +297,36 @@       -30x +40x   -30x +40x +3x +37x 2x -28x -1x     -27x +35x 1x     1x     -27x +35x         - 
import type { Inject } from '../decorators/Inject';
-import type { Register } from '../decorators/Register';
-import type { RegisterInstance } from '../decorators/RegisterInstance';
-import type { register } from '../functions/register';
-import type { resolve } from '../functions/resolve';
-import { ImplementsStatic } from '../helper/ImplementsStatic';
-import { DependencyResolutionError } from '../interfaces/Exceptions';
-import { IDependency } from '../interfaces/IDependency';
-import { ITSinjex, ITSinjex_ } from '../interfaces/ITSinjex';
-import { Identifier } from '../types/Identifier';
+ 
import type { Inject } from '../decorators/Inject.js';
+import type { Register } from '../decorators/Register.js';
+import type { RegisterInstance } from '../decorators/RegisterInstance.js';
+import type { register } from '../functions/register.js';
+import type { resolve } from '../functions/resolve.js';
+import { ImplementsStatic } from '../helper/ImplementsStatic.js';
+import { DependencyResolutionError } from '../interfaces/Exceptions.js';
+import { IDependency } from '../interfaces/IDependency.js';
+import { ITSinjex, ITSinjex_ } from '../interfaces/ITSinjex.js';
+import { Identifier } from '../types/Identifier.js';
  
 /**
  * # TSinjex
@@ -451,7 +451,7 @@ export class TSinjex implements ITSinjex {
             
         
         
         
         
         
         
         
         
+        
+        
+        
+    
Zur TypeDoc-Dokumentation
+ + \ No newline at end of file diff --git a/coverage/lcov-report/functions/register.ts.html b/coverage/lcov-report/functions/register.ts.html index 904e857..a5c78e9 100644 --- a/coverage/lcov-report/functions/register.ts.html +++ b/coverage/lcov-report/functions/register.ts.html @@ -141,8 +141,8 @@   1x   - 
import { TSinjex } from '../classes/TSinjex';
-import { Identifier } from '../types/Identifier';
+ 
import { TSinjex } from '../classes/TSinjex.js';
+import { Identifier } from '../types/Identifier.js';
  
 /**
  * Register a dependency.
@@ -187,7 +187,7 @@ export function register<T>(
             
         
         
         
         
         
         
  • A decorator to inject a dependency from a DI (Dependency Injection) container into a class property.

    +Inject | ts-injex - v1.0.0
    • A decorator to inject a dependency from a DI (Dependency Injection) container into a class property.

      Type Parameters

      • T

        The type of the dependency to be injected.

      • U

        The type of the property to be injected.

      Parameters

      • identifier: Identifier

        The identifier used to resolve the class in the DI container.

      • Optionalinit: true | InitDelegate<T, U>

        Optional an initializer function to transform the dependency before injection or true to instantiate the dependency if it has a constructor.

        -
      • necessary: boolean = true

        If true, throws an error if the dependency is not found.

        +
      • isNecessary: boolean = true

        If true, throws an error if the dependency is not found.

      Returns ((target: unknown, propertyKey: string | symbol) => void)

      The resolved dependency or undefined if the dependency is not necessary and not found, or throws an error if the dependency is necessary and not found.

        • (target, propertyKey): void
        • Parameters

          • target: unknown
          • propertyKey: string | symbol

          Returns void

        @@ -22,4 +22,4 @@ and not found, or throws an error if the dependency is necessary and not found.<
        class MyClass {
        @Inject('ILogger_', (x: ILogger_) => x.getLogger('Tags'), false)
        private _logger?: ILogger;
        }
        -
    +
diff --git a/functions/decorators_Register.Register.html b/functions/decorators_Register.Register.html index 4d4fb1b..e2eb750 100644 --- a/functions/decorators_Register.Register.html +++ b/functions/decorators_Register.Register.html @@ -1,4 +1,4 @@ -Register | ts-injex - v0.4.0
  • A decorator to register a class in the TSinjex DI (Dependency Injection) container.

    +Register | ts-injex - v1.0.0
    • A decorator to register a class in the TSinjex DI (Dependency Injection) container.

      Type Parameters

      • TargetType extends (new (...args: unknown[]) => InstanceType<TargetType>)

        The type of the class to be registered.

      Parameters

      • identifier: Identifier

        The identifier used to register the class in the DI container.

      • Optionaldeprecated: boolean

        If true, the dependency is deprecated and a warning @@ -11,7 +11,7 @@ is logged only once upon the first resolution of the dependency.

        @Register('MyClassIdentifier', true)
        class MyClass {
        // ...
        }
        -
      • A decorator to register an instance of a class in the DI (Dependency Injection) container.

        +
      • A decorator to register an instance of a class in the DI (Dependency Injection) container.

        Type Parameters

        • TargetType extends (new (..._args: unknown[]) => InstanceType<TargetType>)

          The type of the class whose instance is to be registered.

        Parameters

        • identifier: Identifier

          The identifier used to register the instance in the DI container.

        • shouldRegister: "instance"

          Set to 'instance' to register the instance in the DI container @@ -26,7 +26,7 @@ is logged only once upon the first resolution of the dependency.

          @RegisterInstance('MyClassInstanceIdentifier', 'instance', true)
          class MyClass {
          // ...
          }
          -
        • A decorator to register an instance of a class in the DI (Dependency Injection) container.

          +
        • A decorator to register an instance of a class in the DI (Dependency Injection) container.

          Type Parameters

          • TargetType extends (new (..._args: unknown[]) => InstanceType<TargetType>)

            The type of the class whose instance is to be registered.

          Parameters

          • identifier: Identifier

            The identifier used to register the instance in the DI container.

          • Optionalinit: InitDelegate<TargetType & (new (..._args: unknown[]) => InstanceType<TargetType>), InstanceType<TargetType>>

            An optional initializer function which get the constructor of the class @@ -44,4 +44,4 @@ is logged only once upon the first resolution of the dependency.

            @RegisterInstance('MyClassInstanceIdentifier', (constructor) => new constructor(), true)
            class MyClass {
            // ...
            }
            -
    +
diff --git a/functions/decorators_RegisterInstance.RegisterInstance.html b/functions/decorators_RegisterInstance.RegisterInstance.html index a9c031b..06550f4 100644 --- a/functions/decorators_RegisterInstance.RegisterInstance.html +++ b/functions/decorators_RegisterInstance.RegisterInstance.html @@ -1,4 +1,4 @@ -RegisterInstance | ts-injex - v0.4.0
  • A decorator to register an instance of a class in the DI (Dependency Injection) container.

    +RegisterInstance | ts-injex - v1.0.0
    • A decorator to register an instance of a class in the DI (Dependency Injection) container.

      Type Parameters

      • TargetType extends (new (..._args: unknown[]) => InstanceType<TargetType>)

        The type of the class whose instance is to be registered.

      Parameters

      • identifier: Identifier

        The identifier used to register the instance in the DI container.

      • Optionalinit: InitDelegate<TargetType & (new (..._args: unknown[]) => InstanceType<TargetType>), InstanceType<TargetType>>

        An optional initializer function which get the constructor of the class @@ -14,4 +14,4 @@ is logged only once upon the first resolution of the dependency.

Use Register instead. This decorator already uses the Register decorator internally.

-
+
diff --git a/functions/functions_inject.inject.html b/functions/functions_inject.inject.html new file mode 100644 index 0000000..94b521b --- /dev/null +++ b/functions/functions_inject.inject.html @@ -0,0 +1,25 @@ +inject | ts-injex - v1.0.0
  • A function to inject a dependency from a DI (Dependency Injection) container into a variable.

    +

    Type Parameters

    • T

      The type of the dependency to be injected.

      +
    • U

      The type of the property to be injected.

      +

    Parameters

    • identifier: Identifier

      The identifier used to resolve the class in the DI container.

      +
    • Optionalinit: true | InitDelegate<T, U>

      Optional an initializer function to transform the dependency before injection +or true to instantiate the dependency if it has a constructor.

      +
    • isNecessary: boolean = true

      If true, throws an error if the dependency is not found.

      +

    Returns T | U | undefined

    The resolved dependency or undefined if the dependency is not necessary +and not found, or throws an error if the dependency is necessary and not found.

    +
      +
    • Identifier for more information on identifiers.
    • +
    • InitDelegate for more information on initializer functions.
    • +
    +

    Only throws errors if the dependency is necessary.

    +

    A DependencyResolutionError if the dependency is not found.

    +

    A InjectorError if an error occurs during the injection process.

    +

    A NoInstantiationMethodError if the dependency does not have a constructor.

    +

    An InitializationError if an error occurs during the initialization process.

    +
    let myDependency = inject<MyDependency>('MyDependencyIdentifier');
    +
    + +
    let logger = inject<ILogger>('ILogger_', (x: ILogger_) => x.getLogger('Tags'), false);
    +
    + +
diff --git a/functions/functions_register.register.html b/functions/functions_register.register.html index eb04a9d..d884b1e 100644 --- a/functions/functions_register.register.html +++ b/functions/functions_register.register.html @@ -1,4 +1,4 @@ -register | ts-injex - v0.4.0

Register a dependency.

+register | ts-injex - v1.0.0

Register a dependency.

The identifier used to register the class in the DI container.

Identifier for more information on identifiers.

The dependency to register.

@@ -8,9 +8,9 @@ is logged when the dependency is resolved.

Type Parameters

  • T

Parameters

  • identifier: Identifier

    The identifier used to register the class in the DI container.

  • dependency: T

    The dependency to register.

Returns void

Identifier for more information on identifiers..

-
  • Register a dependency.

    +
  • Register a dependency.

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier used to register the class in the DI container.

    • dependency: T

      The dependency to register.

    • Optionaldeprecated: true

      A warning is logged when the dependency is resolved.

    Returns void

    Identifier for more information on identifiers.

    -
  • +
    diff --git a/functions/functions_resolve.resolve.html b/functions/functions_resolve.resolve.html index 87c3dd0..fb0c9bf 100644 --- a/functions/functions_resolve.resolve.html +++ b/functions/functions_resolve.resolve.html @@ -1,4 +1,4 @@ -resolve | ts-injex - v0.4.0

    Resolve a dependency.

    +resolve | ts-injex - v1.0.0

    Resolve a dependency.

    The identifier used to register the class in the DI container.

    Identifier for more information on identifiers.

    If true, throws an error if the dependency is not found.

    @@ -10,9 +10,9 @@ and not found, or throws an error if the dependency is necessary and not found.<

    Returns T

    The resolved dependency.

    Identifier for more information on identifiers.

    A DependencyResolutionError if the dependency is not found.

    -
  • Resolve a dependency

    +
  • Resolve a dependency

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier used to register the class in the DI container.

      -
    • necessary: false

      The dependency is not necessary.

      +
    • isNecessary: false

      The dependency is not necessary.

    Returns T | undefined

    The resolved dependency or undefined if the dependency is not found.

    Identifier for more information on identifiers.

    -
  • +
    diff --git a/functions/helper_ImplementsStatic.ImplementsStatic.html b/functions/helper_ImplementsStatic.ImplementsStatic.html index 665d7f1..102ca7d 100644 --- a/functions/helper_ImplementsStatic.ImplementsStatic.html +++ b/functions/helper_ImplementsStatic.ImplementsStatic.html @@ -1,4 +1,4 @@ -ImplementsStatic | ts-injex - v0.4.0
    • Decorator to enforce static implementation of an interface. +ImplementsStatic | ts-injex - v1.0.0

      • Decorator to enforce static implementation of an interface. Warns on compile time if the interface is not implemented.

        Type Parameters

        • I

        Returns (<T>(constructor: T, ...args: unknown[]) => void)

        A decorator function

        -
          • <T>(constructor, ...args): void
          • Type Parameters

            • T

            Parameters

            • constructor: T
            • Rest...args: unknown[]

            Returns void

      +
        • <T>(constructor, ...args): void
        • Type Parameters

          • T

          Parameters

          • constructor: T
          • Rest...args: unknown[]

          Returns void

    diff --git a/hierarchy.html b/hierarchy.html index 9f35ba2..4626954 100644 --- a/hierarchy.html +++ b/hierarchy.html @@ -1 +1 @@ -ts-injex - v0.4.0
    +ts-injex - v1.0.0
    diff --git a/index.html b/index.html index 3ee07b2..f55da7c 100644 --- a/index.html +++ b/index.html @@ -1,8 +1,8 @@ -ts-injex - v0.4.0

    ts-injex - v0.4.0

    Time

    +ts-injex - v1.0.0

    ts-injex - v1.0.0

    Time

    Statements Branches Functions Lines

    TSinjex

    Strings and symbols are possible for the identifiers.

    For the use of TSinjex with Jest, the corresponding source files can be found under ./src of the TSinjex node_module folder. To use these files, the moduleNameMapper must be configured in the Jest configuration file. The following example shows how to configure the Jest configuration file to use the source files of TSinjex.

    module.exports = {
    setupFilesAfterEnv: ['./scripts/jest.setup.js'],
    preset: 'ts-jest',
    testEnvironment: 'node',
    testMatch: ['**/__tests__/**/*.test.ts', '**/?(*.)+(test).ts'],
    moduleDirectories: ['node_modules', 'src'],
    moduleNameMapper: {
    '^src/(.*)$': '<rootDir>/src/$1', // Map src to the source folder
    '^ts-injex$': '<rootDir>/node_modules/ts-injex/src', // Map ts-injex to the source folder
    },
    transformIgnorePatterns: [
    'node_modules/(?!ts-injex)' // **Dont** ignore ts-injex on preset `ts-jest`
    ],
    };
    -
    +
    diff --git a/interfaces/interfaces_IDependency.IDependency.html b/interfaces/interfaces_IDependency.IDependency.html index f15c837..46f0a63 100644 --- a/interfaces/interfaces_IDependency.IDependency.html +++ b/interfaces/interfaces_IDependency.IDependency.html @@ -1,7 +1,7 @@ -IDependency | ts-injex - v0.4.0

    Dependency Entry Interface

    -
    interface IDependency {
        dependency: unknown;
        deprecated?: boolean;
    }

    Properties

    dependency +IDependency | ts-injex - v1.0.0

    Dependency Entry Interface

    +
    interface IDependency {
        dependency: unknown;
        deprecated?: boolean;
    }

    Properties

    dependency: unknown

    The dependency itself

    -
    deprecated?: boolean

    If true, the dependency is deprecated => a warning +

    deprecated?: boolean

    If true, the dependency is deprecated => a warning is logged when the dependency is resolved

    -
    +
    diff --git a/interfaces/interfaces_ITSinjex.ITSinjex.html b/interfaces/interfaces_ITSinjex.ITSinjex.html index aef39ef..f558784 100644 --- a/interfaces/interfaces_ITSinjex.ITSinjex.html +++ b/interfaces/interfaces_ITSinjex.ITSinjex.html @@ -1,31 +1,31 @@ -ITSinjex | ts-injex - v0.4.0

    Instance TSinjex Interface

    -
    interface ITSinjex {
        register<T>(identifier: Identifier, dependency: T, deprecated?: boolean): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: true): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: false): void;
        resolve<T>(identifier: Identifier, necessary?: boolean): undefined | T;
        resolve<T>(identifier: Identifier, necessary?: true): T;
        resolve<T>(identifier: Identifier, necessary?: false): undefined | T;
    }

    Hierarchy (view full)

    Implemented by

    Methods

    register +ITSinjex | ts-injex - v1.0.0

    Instance TSinjex Interface

    +
    interface ITSinjex {
        register<T>(identifier: Identifier, dependency: T, deprecated?: boolean): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: true): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: false): void;
        resolve<T>(identifier: Identifier, necessary?: boolean): undefined | T;
        resolve<T>(identifier: Identifier, necessary?: true): T;
        resolve<T>(identifier: Identifier, necessary?: false): undefined | T;
    }

    Hierarchy (view full)

    Implemented by

    Methods

    • Register a dependency.

      Type Parameters

      • T

      Parameters

      • identifier: Identifier

        The identifier of the dependency.

      • dependency: T

        The dependency to register.

      • Optionaldeprecated: boolean

        If true, the dependency is deprecated => a warning is logged when the dependency is resolved.

        -

      Returns void

    • Register a deprecated dependency.

      +

    Returns void

  • Register a deprecated dependency.

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier of the dependency.

    • dependency: T

      The dependency to register.

    • Optionaldeprecated: true

      A warning is logged when the dependency is resolved.

      -

    Returns void

  • Register a dependency.

    +
  • Returns void

  • Register a dependency.

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier of the dependency.

    • dependency: T

      The dependency to register.

    • Optionaldeprecated: false

      No warning is logged when the dependency is resolved.

      -

    Returns void

    • Resolve a dependency

      +

    Returns void

    +
    diff --git a/interfaces/interfaces_ITSinjex.ITSinjexRegister.html b/interfaces/interfaces_ITSinjex.ITSinjexRegister.html index 3de5aa5..66ae221 100644 --- a/interfaces/interfaces_ITSinjex.ITSinjexRegister.html +++ b/interfaces/interfaces_ITSinjex.ITSinjexRegister.html @@ -1,16 +1,16 @@ -ITSinjexRegister | ts-injex - v0.4.0

    Register method for static and instance Dependency Injection Container.

    -
    interface ITSinjexRegister {
        register<T>(identifier: Identifier, dependency: T, deprecated?: boolean): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: true): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: false): void;
    }

    Hierarchy (view full)

    Methods

    register +ITSinjexRegister | ts-injex - v1.0.0

    Register method for static and instance Dependency Injection Container.

    +
    interface ITSinjexRegister {
        register<T>(identifier: Identifier, dependency: T, deprecated?: boolean): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: true): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: false): void;
    }

    Hierarchy (view full)

    Methods

    Methods

    • Register a dependency.

      Type Parameters

      • T

      Parameters

      • identifier: Identifier

        The identifier of the dependency.

      • dependency: T

        The dependency to register.

      • Optionaldeprecated: boolean

        If true, the dependency is deprecated => a warning is logged when the dependency is resolved.

        -

      Returns void

    • Register a deprecated dependency.

      +

    Returns void

  • Register a deprecated dependency.

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier of the dependency.

    • dependency: T

      The dependency to register.

    • Optionaldeprecated: true

      A warning is logged when the dependency is resolved.

      -

    Returns void

  • Register a dependency.

    +
  • Returns void

  • Register a dependency.

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier of the dependency.

    • dependency: T

      The dependency to register.

    • Optionaldeprecated: false

      No warning is logged when the dependency is resolved.

      -

    Returns void

  • +

    Returns void

    diff --git a/interfaces/interfaces_ITSinjex.ITSinjexResolve.html b/interfaces/interfaces_ITSinjex.ITSinjexResolve.html index f6b1a5c..46983e1 100644 --- a/interfaces/interfaces_ITSinjex.ITSinjexResolve.html +++ b/interfaces/interfaces_ITSinjex.ITSinjexResolve.html @@ -1,17 +1,17 @@ -ITSinjexResolve | ts-injex - v0.4.0

    Resolve method for static and instance Dependency Injection Container.

    -
    interface ITSinjexResolve {
        resolve<T>(identifier: Identifier, necessary?: boolean): undefined | T;
        resolve<T>(identifier: Identifier, necessary?: true): T;
        resolve<T>(identifier: Identifier, necessary?: false): undefined | T;
    }

    Hierarchy (view full)

    Methods

    resolve +ITSinjexResolve | ts-injex - v1.0.0

    Resolve method for static and instance Dependency Injection Container.

    +
    interface ITSinjexResolve {
        resolve<T>(identifier: Identifier, necessary?: boolean): undefined | T;
        resolve<T>(identifier: Identifier, necessary?: true): T;
        resolve<T>(identifier: Identifier, necessary?: false): undefined | T;
    }

    Hierarchy (view full)

    Methods

    Methods

    • Resolve a dependency

      Type Parameters

      • T

      Parameters

      • identifier: Identifier

        The identifier of the dependency

      • Optionalnecessary: boolean

        If true, throws an error if the dependency is not found

      Returns undefined | T

      The resolved dependency or undefined if the dependency is not found

      A DependencyResolutionError if the dependency is not found and necessary.

      -
    • Resolve a necessary dependency.

      +
    • Resolve a necessary dependency.

      Type Parameters

      • T

      Parameters

      • identifier: Identifier

        The identifier of the dependency.

      • Optionalnecessary: true

        If true, throws an error if the dependency is not found.

      Returns T

      The resolved dependency.

      A DependencyResolutionError if the dependency is not found.

      -
    • Resolve a non necessary dependency

      +
    • Resolve a non necessary dependency

      Type Parameters

      • T

      Parameters

      • identifier: Identifier

        The identifier of the dependency

      • Optionalnecessary: false

        Not necessary, does not throw an error if the dependency is not found.

      Returns undefined | T

      The resolved dependency or undefined if the dependency is not found

      -
    +
    diff --git a/interfaces/interfaces_ITSinjex.ITSinjex_.html b/interfaces/interfaces_ITSinjex.ITSinjex_.html index 4eaa8b0..0962074 100644 --- a/interfaces/interfaces_ITSinjex.ITSinjex_.html +++ b/interfaces/interfaces_ITSinjex.ITSinjex_.html @@ -1,34 +1,34 @@ -ITSinjex_ | ts-injex - v0.4.0

    Static TSInjex Interface

    -
    interface ITSinjex_ {
        getInstance(): ITSinjex;
        register<T>(identifier: Identifier, dependency: T, deprecated?: boolean): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: true): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: false): void;
        resolve<T>(identifier: Identifier, necessary?: boolean): undefined | T;
        resolve<T>(identifier: Identifier, necessary?: true): T;
        resolve<T>(identifier: Identifier, necessary?: false): undefined | T;
    }

    Hierarchy (view full)

    Methods

    getInstance +ITSinjex_ | ts-injex - v1.0.0

    Static TSInjex Interface

    +
    interface ITSinjex_ {
        getInstance(): ITSinjex;
        register<T>(identifier: Identifier, dependency: T, deprecated?: boolean): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: true): void;
        register<T>(identifier: Identifier, dependency: T, deprecated?: false): void;
        resolve<T>(identifier: Identifier, necessary?: boolean): undefined | T;
        resolve<T>(identifier: Identifier, necessary?: true): T;
        resolve<T>(identifier: Identifier, necessary?: false): undefined | T;
    }

    Hierarchy (view full)

    Methods

    • Register a dependency.

      Type Parameters

      • T

      Parameters

      • identifier: Identifier

        The identifier of the dependency.

      • dependency: T

        The dependency to register.

      • Optionaldeprecated: boolean

        If true, the dependency is deprecated => a warning is logged when the dependency is resolved.

        -

      Returns void

    • Register a deprecated dependency.

      +

    Returns void

  • Register a deprecated dependency.

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier of the dependency.

    • dependency: T

      The dependency to register.

    • Optionaldeprecated: true

      A warning is logged when the dependency is resolved.

      -

    Returns void

  • Register a dependency.

    +
  • Returns void

  • Register a dependency.

    Type Parameters

    • T

    Parameters

    • identifier: Identifier

      The identifier of the dependency.

    • dependency: T

      The dependency to register.

    • Optionaldeprecated: false

      No warning is logged when the dependency is resolved.

      -

    Returns void

    • Resolve a dependency

      +

    Returns void

    +
    diff --git a/modules/classes_TSinjex.html b/modules/classes_TSinjex.html index aca9d63..fec535d 100644 --- a/modules/classes_TSinjex.html +++ b/modules/classes_TSinjex.html @@ -1,2 +1,2 @@ -classes/TSinjex | ts-injex - v0.4.0

    Module classes/TSinjex

    Index

    Classes

    +classes/TSinjex | ts-injex - v1.0.0

    Module classes/TSinjex

    Index

    Classes

    diff --git a/modules/decorators_Inject.html b/modules/decorators_Inject.html index 8f52b75..300fbed 100644 --- a/modules/decorators_Inject.html +++ b/modules/decorators_Inject.html @@ -1,2 +1,2 @@ -decorators/Inject | ts-injex - v0.4.0

    Module decorators/Inject

    Index

    Functions

    +decorators/Inject | ts-injex - v1.0.0

    Module decorators/Inject

    Index

    Functions

    diff --git a/modules/decorators_Register.html b/modules/decorators_Register.html index b060c86..7728b26 100644 --- a/modules/decorators_Register.html +++ b/modules/decorators_Register.html @@ -1,2 +1,2 @@ -decorators/Register | ts-injex - v0.4.0

    Module decorators/Register

    Index

    Functions

    +decorators/Register | ts-injex - v1.0.0

    Module decorators/Register

    Index

    Functions

    diff --git a/modules/decorators_RegisterInstance.html b/modules/decorators_RegisterInstance.html index d1ee785..80cb0f2 100644 --- a/modules/decorators_RegisterInstance.html +++ b/modules/decorators_RegisterInstance.html @@ -1,2 +1,2 @@ -decorators/RegisterInstance | ts-injex - v0.4.0

    Module decorators/RegisterInstance

    Index

    Functions

    +decorators/RegisterInstance | ts-injex - v1.0.0

    Module decorators/RegisterInstance

    Index

    Functions

    diff --git a/modules/functions_inject.html b/modules/functions_inject.html new file mode 100644 index 0000000..cd6e32a --- /dev/null +++ b/modules/functions_inject.html @@ -0,0 +1,2 @@ +functions/inject | ts-injex - v1.0.0

    Module functions/inject

    Index

    Functions

    diff --git a/modules/functions_register.html b/modules/functions_register.html index aa04241..6fe163c 100644 --- a/modules/functions_register.html +++ b/modules/functions_register.html @@ -1,2 +1,2 @@ -functions/register | ts-injex - v0.4.0

    Module functions/register

    Index

    Functions

    +functions/register | ts-injex - v1.0.0

    Module functions/register

    Index

    Functions

    diff --git a/modules/functions_resolve.html b/modules/functions_resolve.html index 8017b44..d7a3f33 100644 --- a/modules/functions_resolve.html +++ b/modules/functions_resolve.html @@ -1,2 +1,2 @@ -functions/resolve | ts-injex - v0.4.0

    Module functions/resolve

    Index

    Functions

    +functions/resolve | ts-injex - v1.0.0

    Module functions/resolve

    Index

    Functions

    diff --git a/modules/helper_ImplementsStatic.html b/modules/helper_ImplementsStatic.html index 1a63b1c..2b77809 100644 --- a/modules/helper_ImplementsStatic.html +++ b/modules/helper_ImplementsStatic.html @@ -1,2 +1,2 @@ -helper/ImplementsStatic | ts-injex - v0.4.0

    Module helper/ImplementsStatic

    Index

    Functions

    +helper/ImplementsStatic | ts-injex - v1.0.0

    Module helper/ImplementsStatic

    Index

    Functions

    diff --git a/modules/index.html b/modules/index.html index bb7d596..4c3834b 100644 --- a/modules/index.html +++ b/modules/index.html @@ -1,4 +1,4 @@ -index | ts-injex - v0.4.0

    Module index

    References

    ForceConstructor +index | ts-injex - v1.0.0

    Module index

    References

    Re-exports ForceConstructor
    Re-exports GenericConstructor
    Re-exports ITSinjex
    Re-exports ITSinjexRegister
    Re-exports ITSinjexResolve
    Re-exports ITSinjex_
    Re-exports ImplementsStatic
    Re-exports InitDelegate
    Re-exports Inject
    Re-exports Register
    Re-exports RegisterInstance
    Re-exports TSinjex
    Re-exports register
    Re-exports resolve
    +

    References

    Re-exports ForceConstructor
    Re-exports GenericConstructor
    Re-exports ITSinjex
    Re-exports ITSinjexRegister
    Re-exports ITSinjexResolve
    Re-exports ITSinjex_
    Re-exports ImplementsStatic
    Re-exports InitDelegate
    Re-exports Inject
    Re-exports Register
    Re-exports RegisterInstance
    Re-exports TSinjex
    Re-exports register
    Re-exports resolve
    diff --git a/modules/interfaces_Exceptions.html b/modules/interfaces_Exceptions.html index b2ea139..b6e7596 100644 --- a/modules/interfaces_Exceptions.html +++ b/modules/interfaces_Exceptions.html @@ -1,6 +1,6 @@ -interfaces/Exceptions | ts-injex - v0.4.0

    Module interfaces/Exceptions

    Index

    Classes

    DependencyResolutionError +interfaces/Exceptions | ts-injex - v1.0.0
    +
    diff --git a/modules/interfaces_IDependency.html b/modules/interfaces_IDependency.html index daa3724..bb37235 100644 --- a/modules/interfaces_IDependency.html +++ b/modules/interfaces_IDependency.html @@ -1,2 +1,2 @@ -interfaces/IDependency | ts-injex - v0.4.0

    Module interfaces/IDependency

    Index

    Interfaces

    +interfaces/IDependency | ts-injex - v1.0.0

    Module interfaces/IDependency

    Index

    Interfaces

    diff --git a/modules/interfaces_ITSinjex.html b/modules/interfaces_ITSinjex.html index 6b23782..66c61f5 100644 --- a/modules/interfaces_ITSinjex.html +++ b/modules/interfaces_ITSinjex.html @@ -1,5 +1,5 @@ -interfaces/ITSinjex | ts-injex - v0.4.0

    Module interfaces/ITSinjex

    Index

    Interfaces

    ITSinjex +interfaces/ITSinjex | ts-injex - v1.0.0
    +
    diff --git a/modules/types_GenericContructor.html b/modules/types_GenericContructor.html index 1acdfaf..a2953ef 100644 --- a/modules/types_GenericContructor.html +++ b/modules/types_GenericContructor.html @@ -1,3 +1,3 @@ -types/GenericContructor | ts-injex - v0.4.0

    Module types/GenericContructor

    Index

    Type Aliases

    ForceConstructor +types/GenericContructor | ts-injex - v1.0.0
    +
    diff --git a/modules/types_Identifier.html b/modules/types_Identifier.html index b7e878b..861c6ba 100644 --- a/modules/types_Identifier.html +++ b/modules/types_Identifier.html @@ -1,2 +1,2 @@ -types/Identifier | ts-injex - v0.4.0

    Module types/Identifier

    Index

    Type Aliases

    +types/Identifier | ts-injex - v1.0.0

    Module types/Identifier

    Index

    Type Aliases

    diff --git a/modules/types_InitDelegate.html b/modules/types_InitDelegate.html index 33af79f..3a45414 100644 --- a/modules/types_InitDelegate.html +++ b/modules/types_InitDelegate.html @@ -1,2 +1,2 @@ -types/InitDelegate | ts-injex - v0.4.0

    Module types/InitDelegate

    Index

    Type Aliases

    +types/InitDelegate | ts-injex - v1.0.0

    Module types/InitDelegate

    Index

    Type Aliases

    diff --git a/types/types_GenericContructor.ForceConstructor.html b/types/types_GenericContructor.ForceConstructor.html index e6931a1..7b36217 100644 --- a/types/types_GenericContructor.ForceConstructor.html +++ b/types/types_GenericContructor.ForceConstructor.html @@ -1,3 +1,3 @@ -ForceConstructor | ts-injex - v0.4.0
    ForceConstructor<T>: (new (...args: unknown[]) => T)

    Force generic constructor type. +ForceConstructor | ts-injex - v1.0.0

    ForceConstructor<T>: (new (...args: unknown[]) => T)

    Force generic constructor type. This type is used to force a class to has a constructor.

    -

    Type Parameters

    • T
    +

    Type Parameters

    • T
    diff --git a/types/types_GenericContructor.GenericConstructor.html b/types/types_GenericContructor.GenericConstructor.html index 6b78194..dc98c45 100644 --- a/types/types_GenericContructor.GenericConstructor.html +++ b/types/types_GenericContructor.GenericConstructor.html @@ -1,3 +1,3 @@ -GenericConstructor | ts-injex - v0.4.0
    GenericConstructor<T>: (new (...args: ConstructorParameters<T>) => T)

    Generic constructor type. +GenericConstructor | ts-injex - v1.0.0

    GenericConstructor<T>: (new (...args: ConstructorParameters<T>) => T)

    Generic constructor type. This type is used to define a constructor of a class.

    -

    Type Parameters

    • T extends (abstract new (...args: unknown[]) => InstanceType<T>)
    +

    Type Parameters

    • T extends (abstract new (...args: unknown[]) => InstanceType<T>)
    diff --git a/types/types_Identifier.Identifier.html b/types/types_Identifier.Identifier.html index baa7e76..95ea408 100644 --- a/types/types_Identifier.Identifier.html +++ b/types/types_Identifier.Identifier.html @@ -1,4 +1,4 @@ -Identifier | ts-injex - v0.4.0
    Identifier: string | symbol

    The dependency identifier. +Identifier | ts-injex - v1.0.0

    Identifier: string | symbol

    The dependency identifier. You can use any string as identifier. To create order, it is also possible to provide these with a separator: GroupA.ClassZ. @@ -6,4 +6,4 @@ The convection for naming is as follows: The name should generally correspond to the interface that is relevant. I.e. a class ClassA that implements the interface IClassA and is registered as a dependent class is registered under the interface name IClassA.

    -
    +
    diff --git a/types/types_InitDelegate.InitDelegate.html b/types/types_InitDelegate.InitDelegate.html index 161f203..4bd41b5 100644 --- a/types/types_InitDelegate.InitDelegate.html +++ b/types/types_InitDelegate.InitDelegate.html @@ -1,7 +1,7 @@ -InitDelegate | ts-injex - v0.4.0

    Type Alias InitDelegate<T, U>

    InitDelegate<T, U>: ((x: T) => U)

    A function type representing an initializer that transforms an input of type T +InitDelegate | ts-injex - v1.0.0

    Type Alias InitDelegate<T, U>

    InitDelegate<T, U>: ((x: T) => U)

    A function type representing an initializer that transforms an input of type T into an output of type U.

    Type Parameters

    • T

      The type of the input parameter.

    • U

      The type of the output parameter.

    Type declaration

      • (x): U
      • Parameters

        • x: T

          The input parameter of type T.

        Returns U

        The transformed output of type U.

        -
    +