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

feat(js-client): remove use of Enum, allow typings in CTS #63

Merged
merged 6 commits into from
Jan 6, 2022

Conversation

shortcuts
Copy link
Member

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-245

Changes included:

This PR removes usage of Enum in the JavaScript client, which also allow us to use TypeScript in our generated tests.

  • Remove Enum usage in JavaScript client
  • Remove ts-nocheck from generated tests
  • Fix tests that were not correct
  • Fix types that were not correct

🧪 Test

CI :D

@shortcuts shortcuts requested a review from a team January 5, 2022 15:36
@shortcuts shortcuts self-assigned this Jan 5, 2022
@shortcuts shortcuts requested review from millotp and removed request for a team January 5, 2022 15:36
millotp
millotp previously approved these changes Jan 6, 2022
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

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

The unions are looking good, the ConsequenceParams` looks like a duplicate but java is having a hard time with mixed types

@shortcuts
Copy link
Member Author

shortcuts commented Jan 6, 2022

the ConsequenceParams` looks like a duplicate but java is having a hard time with mixed types

It is, but I did not find a better way to do it:/

@millotp
Copy link
Collaborator

millotp commented Jan 6, 2022

It's fine for generated code, we already have many duplicates

@shortcuts shortcuts requested a review from millotp January 6, 2022 13:23
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