You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We want to dispose all Disposable Services from Container.
It's useful to be able to retrieve the bindingDictionary copy for writing the Unit tests as well. getBindingDictionary might help to solve such common problem.
Expected Behavior
to be able to import { getBindingDictionary } from 'inversify' or from 'inversify/utils' or 'inversify/planning' etc.
Current Behavior
getBindingDictionary imports doesn't work as it's internal stuff, so neither webpack nor jest can resolve it(.
import { getBindingDictionary } from 'inversify/dts/planning/planner';
Possible Solution
to export handy utils and interfaces for work with the bindingDictionary
to put *.d.ts typings next to the *.js files so the import directories would match
Stack trace
ERROR in ./src/bootstrap/bootstrap.tsx 12:0-70
Module not found: Error: Can't resolve 'inversify/dts/planning/planner' in 'app/src/bootstrap'
The text was updated successfully, but these errors were encountered:
am0wa
changed the title
Retrieving the bindingDictionary copy – can't resolve getBindingDictionary imports
[TypeScript] Retrieving the bindingDictionary copy – can't resolve getBindingDictionary imports
Dec 4, 2020
The binding dictionary is an internal data structure and it should not be retrieved. What is the motivation to request this feature? I would love to know the use case 😃
We want to dispose all
Disposable
Services fromContainer
.It's useful to be able to retrieve the bindingDictionary copy for writing the Unit tests as well.
getBindingDictionary
might help to solve such common problem.Expected Behavior
to be able to
import { getBindingDictionary } from 'inversify'
or from'inversify/utils'
or'inversify/planning'
etc.Current Behavior
getBindingDictionary
imports doesn't work as it's internal stuff, so neither webpack nor jest can resolve it(.Possible Solution
*.d.ts
typings next to the*.js
files so the import directories would matchStack trace
The text was updated successfully, but these errors were encountered: