Closed singularvoice closed 9 months ago
@chakrihacker Hi Thanks for the review, I will consider your comments and push new commits. Unfortunately, I am a little busy in this week, but I will do it the next week.
Hey @a-hassanzadeh-h - any update on your end for this?
Hey, @coolsoftwaretyler Last week I was swamped, but I worked on it the week before. My problem is I don't know which test I should write to consider this issue as done after tests get passed. Sorry for this very Newbie question, but I am very new to this thing, and I like to contribute I just need some help to start. Could you help me with tests?
Hey @a-hassanzadeh-h - all good! I am happy to help you get started there.
So I think @chakrihacker is asking you to look at the test file in packages/mobx-state-tree/__tests__/core/map.test.ts
. What you'll want to do locally is:
yarn build
to build your local version of the libraryyarn test
to see what's passing/failing.I think on line 449
, there's an as any
which Subramanya is referring to. The idea is that before your change, we would expect a typescript error with that change, and after your PR, we should see no error.
Hey @chakrihacker - it looks like @a-hassanzadeh-h has pushed a new commit here. Do y'all want to see if you can keep pushing this forward? Happy to facilitate if you need any additional help.
I will check today
One small thing left, can you update the test case??
Hey @chakrihacker - what do you think about updating the test case on their behalf? This PR has been open a while and I'd like to either merge it or close it before this weekend so I can do some work on the repo restructure.
@coolsoftwaretyler I have updated, sorry forgot about this one
All good! Thanks @a-hassanzadeh-h and @chakrihacker!
this PR appears to make things change from just a string type to a string|number in a number of places, even for codebases that just use strings. would it be an alternative approach (or does it already exist?) to specify e.g. types.map<string>(ModelType)
to say that the keytype is strings?
What does this PR do and why?
Fix mobxjs/mobx-state-tree#1845
Steps to validate locally