AloisSeckar / AloisSeckar/nuxt-ignis
`ignisDate` should allow string and number arguments
Open
Beginner friendly
bug
- Dominant language
- TypeScript
- Stars
- 18
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
The underlying `format` function from `date-fns` actually accepts and parses following:
```ts
export type DateArg = DateType | number | string;
```
It doesn't make sense to narrow this down to `Date` only as `ignisDate` currently does.
Contributor guide
Research direction
Search the TypeScript source for `ignisDate` and inspect how it passes arguments to the `date-fns` `format` function. Done means the public typing accepts Date, string, and number arguments while preserving the existing Date case.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100