typeorm-typedi-extensions
typeorm-typedi-extensions copied to clipboard
Container Set
I'm setting that container set is not exposed - is there a reason ? Or is there a different approach ? I have a few edge case scenarios where I need to use set.
Use TypeDi's container set method instead:
import { Container, Token } from 'typedi';
const SOME_INJECTION_TOKEN = new Token<any>('some-name');
Container.set(SOME_INJECTION_TOKEN, <some instance>)
Use TypeDi's container set method instead:
import { Container, Token } from 'typedi'; const SOME_INJECTION_TOKEN = new Token<any>('some-name'); Container.set(SOME_INJECTION_TOKEN, <some instance>)
But according to documentation you should use the Container exported from typeorm-typedi-extensions.