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

fix: improve period unit ts type #1050

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

itsramiel
Copy link

Thank you for contributing to purchases-hybrid-common. Before pressing the "Create Pull Request" button, please provide the following:

  • A description about what and why you are contributing, even if it's trivial:
    If periodUnit can be only DAY, WEEK, MONTH or YEAR as mentioned in the comment, then it is better to type it that way. Makes it easier to switch on the predefined union or perform if checks with intellisense

  • The issue number(s) or PR number(s) in the description if you are contributing in response to those:
    There is no issue number

  • If applicable, unit tests.
    Not applicable

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.

1 participant