Skip to content

refactor: use only camelCase - #16

Open
simenandre wants to merge 5 commits into
mainfrom
simenandre/use-camel-case
Open

refactor: use only camelCase#16
simenandre wants to merge 5 commits into
mainfrom
simenandre/use-camel-case

Conversation

@simenandre

@simenandre simenandre commented Jul 4, 2023

Copy link
Copy Markdown
Member

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?

@braaar braaar left a comment

Copy link
Copy Markdown
Member

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

braaar commented Jul 4, 2023

Copy link
Copy Markdown
Member

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