-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Record.get() with optional NSV (TypeScript) #1463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I encounter the same issue. |
* Make NSV optional in Record.get method Fixes immutable-js#1463 * Update documentation
* Make NSV optional in Record.get method Fixes immutable-js#1463 * Update documentation
Woo! I could also use this. |
It's probably a typo, the **Edit: ** of course I was wrong, see #1135 |
I'm glad that this was merged, ideally could you please release a new version with this fix? That would be awesome! Also, it seems that the type for Record should allow direct access to properties, right? |
I'm using
v4.0.0-rc.9
with TypeScript.I wonder why there is no get method in the Record interface without the NSV value.
It results in a lot of
.get('..', null)
calls. Since I know that there is already a value, given that a record factory already enforces that a value is always present for all keys, it seems unnecessary.The text was updated successfully, but these errors were encountered: