InversifyJS icon indicating copy to clipboard operation
InversifyJS copied to clipboard

TYPES must be in own file!?

Open andrecadete opened this issue 2 years ago • 2 comments

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

andrecadete avatar May 09 '22 10:05 andrecadete

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.

AkshayJangid avatar Oct 31 '23 19:10 AkshayJangid

@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?

shellscape avatar Nov 16 '23 14:11 shellscape