inversify / InversifyJS

A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript.
http://inversify.io/
MIT License
11.02k stars 712 forks source link

Update README.md #1546

Closed AkshayJangid closed 9 months ago

AkshayJangid commented 9 months ago

by going through the documentation , it is no where hinted that we need to place Types declaration in separate file. Thus explicitly mentioning it in readme.

Updated Readme file to explicitly mention about adding Types declaration in separate file.

Description

By going through the documentation it is not very clear about adding this in separata file. This leads to error Cannot read properties of undefined on the leaf elements.

Related Issue

Motivation and Context

I was stuck because of this for 4 hours.

How Has This Been Tested?

Not required.

Types of changes

Checklist:

Jameskmonger commented 9 months ago

Hi @AkshayJangid , thanks for the submission - I don't think this is intended behaviour but it would be good to document it while it's still present. I'm just catching up on #1455. It might be good to link to this issue in the README, as my understanding is that this is a bug and should be fixed.

AkshayJangid commented 9 months ago

Hey @Jameskmonger , the problem is at least 4 people i know were stuck because of this for a day. Hence just trying to add it temporarily.

Jameskmonger commented 9 months ago

@AkshayJangid I completely agree. Please adjust the PR to have:

bug: PLEASE MAKE SURE TO PLACE THIS TYPES DECLARATION IN A SEPARATE FILE. (see bug #1455)

then I will merge it immediately. Ty

Jameskmonger commented 9 months ago

Looks like I can edit your PR 😄 I will merge now, ty for contrib @AkshayJangid

codecov-commenter commented 9 months ago

Codecov Report

Merging #1546 (ba0da86) into master (05a9237) will not change coverage. The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@           Coverage Diff           @@
##           master    #1546   +/-   ##
=======================================
  Coverage   99.48%   99.48%           
=======================================
  Files          53       53           
  Lines        1370     1370           
  Branches      200      200           
=======================================
  Hits         1363     1363           
  Partials        7        7           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more