typed-inject
Advanced tools
Changelog
3.0.0 (2020-08-12)
rootInjector
is removed in favor of createInjector
.This:
import { rootInjector } from 'typed-inject';
Becomes:
import { createInjector } from 'typed-inject';
const rootInjector = createInjector();
Injector's created from createInjector
are no longer stateless. They
keep track of their child injectors.
dispose
no longer disposes parent injector, disposes
the child injectors instead. See readme for more details.readonly
array. You can either use as const
or the tokens
helper function for it.Changelog
2.0.0 (2019-05-02)
dispose
(#4) (c1167ae)await
the result of injector.dispose()
.