InversifyJS
InversifyJS copied to clipboard
TYPES must be in own file!?
Hi, not really a bug report, just to see if you are aware since this is not obvious in the docs. As title states.
In fact I cannot get this to work unless the TYPES are explicitly declared and exported in their own file. For example, if the TYPES are exported and declared in the same file as the Container extension class, we will get something: "TypeError: Cannot read property 'DynamoDB' of undefined", where undefined
are our TYPES.
Please let me know if this is expected behavior and if so I'll open a PR to improve the docs' clarity in that sense.
Thanks
Hey, I'll be more then happy to make a PR for this. Let me know if i can help here, but lets add this ASAP.
@Jameskmonger given your comments here https://github.com/inversify/InversifyJS/pull/1546#issuecomment-1789488948, this is probably worthy of a look given its age, no?