-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add typing to v3 #300
Add typing to v3 #300
Conversation
802e37a
to
bd6ed4a
Compare
bd6ed4a
to
b04b384
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some questions when i started the review.
We can talk about it at the hackaton.
src/Collection.ts
Outdated
return array | ||
.filter(entry => isEntityReference(entry)) | ||
.map(entry => this.apiActions.get(entry.href)) | ||
private _replaceEntityReferences (array: Array<ItemType>): Array<ItemType> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is not from your change, but this method is dangerous: if filters out the items which are not Link, and removes them silently from the collection
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you create an Issue to maybe warn the user?
8375d38
to
a5577fe
Compare
f58f887
to
b7c6da4
Compare
Adds typing to hal-json-vuex