Skip to content
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

Merged
merged 5 commits into from
Sep 28, 2024
Merged

Add typing to v3 #300

merged 5 commits into from
Sep 28, 2024

Conversation

manuelmeister
Copy link
Member

@manuelmeister manuelmeister commented Aug 20, 2024

Adds typing to hal-json-vuex

@manuelmeister manuelmeister force-pushed the feature/remove-cjs branch 7 times, most recently from 802e37a to bd6ed4a Compare August 21, 2024 13:34
@manuelmeister manuelmeister marked this pull request as ready for review August 21, 2024 13:37
@manuelmeister manuelmeister mentioned this pull request Aug 27, 2024
Copy link
Contributor

@BacLuc BacLuc left a 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 Show resolved Hide resolved
src/Collection.ts Outdated Show resolved Hide resolved
src/Collection.ts Outdated Show resolved Hide resolved
src/Collection.ts Outdated Show resolved Hide resolved
src/Collection.ts Outdated Show resolved Hide resolved
return array
.filter(entry => isEntityReference(entry))
.map(entry => this.apiActions.get(entry.href))
private _replaceEntityReferences (array: Array<ItemType>): Array<ItemType> {
Copy link
Contributor

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

Copy link
Member Author

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?

src/halHelpers.ts Outdated Show resolved Hide resolved
src/Collection.ts Outdated Show resolved Hide resolved
src/LoadingCollection.ts Outdated Show resolved Hide resolved
src/ResourceCreator.ts Outdated Show resolved Hide resolved
@manuelmeister manuelmeister changed the title Add typing to v3 and move to vitest Add typing to v3 Sep 28, 2024
@manuelmeister manuelmeister requested a review from usu September 28, 2024 21:03
@manuelmeister manuelmeister merged commit 9baf5c2 into ecamp:v3 Sep 28, 2024
6 checks passed
@manuelmeister manuelmeister deleted the feature/remove-cjs branch September 28, 2024 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants