AloisSeckar / AloisSeckar/nuxt-ignis

`ignisDate` should allow string and number arguments

Open Beginner friendly
#207 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.