Skip to content

feat: Create genericLenses (for seller only presently) #13

Draft
lukehesluke wants to merge 9 commits into
mainfrom
feature/generic-lenses
Draft

feat: Create genericLenses (for seller only presently) #13
lukehesluke wants to merge 9 commits into
mainfrom
feature/generic-lenses

Conversation

@lukehesluke

Copy link
Copy Markdown
Contributor

These should allow for more mixing more liberal opportunity validation with lenses

QA

Tests pass

TODO demonstrate that a user of this version works

Comment thread src/lenses.js
Comment on lines +25 to +26
/** @type {typeof genericOpportunityTypeLens<BsBookableScheduledSessionType, SearchIsBookingRequestFacilityUseSlotType | GetSlotByIdResponseType>} */
const opportunityTypeLens = genericOpportunityTypeLens;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works due to a feature added in TS 4.7, hence the version upgrade

Base automatically changed from feature/fix-ts-errors to main October 25, 2022 15:00
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.

1 participant