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: extend order type #73

Merged
merged 1 commit into from
Jun 7, 2022
Merged

feat: extend order type #73

merged 1 commit into from
Jun 7, 2022

Conversation

chybisov
Copy link
Member

@chybisov chybisov commented Jun 7, 2022

No description provided.

@chybisov chybisov merged commit e49f64b into main Jun 7, 2022
@chybisov chybisov deleted the extend-order-type branch June 7, 2022 16:07
Comment on lines +12 to +13
export const _Order = ['RECOMMENDED', 'FASTEST', 'CHEAPEST', 'SAFEST'] as const
export type Order = typeof _Order[number]
Copy link
Member

Choose a reason for hiding this comment

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

Why do you need this? Also _ usually indicates a private property so exporting it feels a bit weird I think?

Copy link
Member Author

Choose a reason for hiding this comment

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

We need this for route priority selection in the widget. I made it like this to follow other unions naming in this file. We can rename it if needed. 🙂

Copy link
Member

Choose a reason for hiding this comment

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

yeah but other unions are not exported ;) Please rename it.
Maybe simply something like Orders? Or PossibleOrders?

Copy link
Member Author

Choose a reason for hiding this comment

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

Orders will be fine.

Copy link
Member

Choose a reason for hiding this comment

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

Great, are you taking care of changing it? :) Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, already been published. :)

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.

None yet

2 participants