generated from Keyrxng/ubiquibot-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create TypeScript Utility Package for Common Functions #1
Comments
I think it's best if we follow this approach with things
|
I agree with this approach |
I think each module should have it's own issue that way we keep prs small |
I'll work on the |
Fine by me, let's get a task list going with who is assigned to what |
/rewrite |
Spec updated successfully |
/rewrite |
Spec updated successfully |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We need to create an npm package that provides a set of utility functions written in TypeScript. These functions will be useful for common tasks across our projects. The package should be well-tested, documented, and maintainable.
stringUtils.capitalize(str: string): string
arrayUtils.shuffle<T>(arr: T[]): T[]
dateUtils.formatDate(date: Date, format: string): string
mathUtils.calculateDiscount(originalPrice: number, discountPercentage: number): number
Acceptance Criteria
@my-awesome-utils/core
.Scope Clarification:
@my-awesome-utils/dates
).Function Naming Convention:
moduleName.functionName
.dates.formatDate(date: Date, format: string): string
dates.calculateAge(birthDate: Date): number
It seems that the author of the issue agrees with this approach. However, there is a comment that says "/rewrite" which suggests that the issue may need to be rewritten. It is unclear what exactly needs to be rewritten, so further clarification may be needed.
No linked issues or pull requests were found in the conversation.
Based on the information provided, it is recommended to update the issue spec to include the scope clarification and function naming convention. If there is a need to rewrite the issue, it should be discussed further to determine the specific changes required.
The text was updated successfully, but these errors were encountered: