-
Notifications
You must be signed in to change notification settings - Fork 8
Add ComboboxOption interface #716
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
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #716 +/- ##
==========================================
- Coverage 56.54% 54.23% -2.31%
==========================================
Files 129 125 -4
Lines 3631 3470 -161
Branches 639 601 -38
==========================================
- Hits 2053 1882 -171
- Misses 1468 1484 +16
+ Partials 110 104 -6 ☔ View full report in Codecov by Sentry. |
| public getData(page: number, itemsPerPage: number): Observable<Array<Combobox<string | number>>> { | ||
| return this.api.getLaboratoryList(page,itemsPerPage).pipe(map((value) => { | ||
| this.totalItems = value.totalElements; | ||
| return value.content; |
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.
Do we receive an array of Combobox<string | number> from API ?
PR Details
A new ComboboxOption interface has been added.
Description
To be able to assure the consistency of the data passed to the combobox, a new interface has been added to be used to type data in the options array.
Related Issue
#715
Motivation and Context
Reinforce type driven development
Types of changes
Checklist