Skip to content

Remove enums from core api #622

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

Merged
merged 2 commits into from
Aug 26, 2022
Merged

Remove enums from core api #622

merged 2 commits into from
Aug 26, 2022

Conversation

ejizba
Copy link
Contributor

@ejizba ejizba commented Aug 23, 2022

Depends on Azure/azure-functions-nodejs-library#6 (see that PR for more description).

The additional files in src/coreApi/converters were super tedious to create and literally the only thing they do is convert enums to strings (while keeping everything else the same). However, I consider the tedium worth it in the worker to save us the pain of enums in the library packages. Also, TypeScript was very good at giving me build errors when I messed things up on these converter methods, which gives me confidence in the changes.

@ejizba ejizba requested a review from hossam-nasr August 23, 2022 21:29
@ejizba ejizba merged commit ce45658 into v3.x Aug 26, 2022
@ejizba ejizba deleted the ej/enums branch August 26, 2022 01:47
ejizba added a commit that referenced this pull request Aug 26, 2022
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.

2 participants