Refactor unspecific for a type check with new TypeError
- Dominant language
- Python
- Stars
- 451
- Forks
- 707
- Avg merge
- 22h 59m
- Merged PRs (30d)
- 91
Description
**Describe the bug**
In frontend directory with dateFormatter.ts module contains unspecific type check return type throwing an exception,Which need to be specific to the point to return the error and describe the actual Problem.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'frontend/src/utils/dateFormatter.ts'
2. Click on DateFormatter.ts
3. Refactor return type with exact specification
**Expected behavior**
After Refactoring with appropriate changes specifing specified type error helps developers and contributors understand what specific problem causing.
**Are you going to work on fixing this?**
- [x] Yes
- [ ] No
**Additional context**
Wonderfull resource
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError
Contributor guide
Assessment
This issue has not been assessed yet.