nicojs / typed-inject

Type safe dependency injection for TypeScript
Apache License 2.0
439 stars 23 forks source link

feat(dispose): Add functionality to explicit disposing of dependencies #1

Closed nicojs closed 5 years ago

nicojs commented 5 years ago

Add the dispose method. Calling dispose on an Injector automatically disposes all dependencies created by the injector. It also disposes the parent injectors.

See readme for more details.