i18next-parser icon indicating copy to clipboard operation
i18next-parser copied to clipboard

fix(types): Mark defaultValue arguments required

Open andersk opened this issue 4 months ago • 1 comments

Why am I submitting this PR

It seems these arguments are always provided to the defaultValue function. (This doesn’t prevent the function from ignoring them: for example, { defaultValue: () => "hello" } still satisfies this type.)

Does it fix an existing ticket?

No

Checklist

  • [x] only relevant code is changed (make a diff before you submit the PR)
  • [x] do no modify the version in package.json or CHANGELOG.md
  • [ ] tests are included and pass: yarn test (see details here)
  • [ ] documentation is changed or added

andersk avatar Aug 06 '25 00:08 andersk

fyi: https://github.com/i18next/i18next-parser/issues/1148

adrai avatar Oct 01 '25 11:10 adrai