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

refactor: use only camelCase #16

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

simenandre
Copy link
Member

@simenandre simenandre commented Jul 4, 2023

This starts work on migrating to using only camelCase, which is obviously a breaking change.

I'm using transform function to do this:
colinhacks/zod#486 (comment)

I added common.ts, which holds a few common functions such as makeSearchParams. This might remove the need for both makeQuery and makeBody.

Also, @braaar, I don't understand the QueryEnvelope and BodyEnvelope, I moved the list trips method away from that. There might be something I'm missing?

Copy link
Member

@braaar braaar left a comment

Choose a reason for hiding this comment

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

Nice! I agree with this change

@braaar
Copy link
Member

braaar commented Jul 4, 2023

Also, @braaar, I don't understand the QueryEnvelope and BodyEnvelope, I moved the list trips method away from that. There might be something I'm missing?

I think we should remove these types and the makeBody and makeQuery methods. They don't serve their purpose anymore

@simenandre simenandre force-pushed the simenandre/use-camel-case branch from b3f7651 to c8a756b Compare July 22, 2023 12:09
@simenandre simenandre force-pushed the simenandre/use-camel-case branch from be1ee20 to e5a95e0 Compare July 22, 2023 12:37
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