Skip to content
This repository was archived by the owner on Feb 22, 2026. It is now read-only.

fix(types): Mark defaultValue arguments required#1146

Open
andersk wants to merge 1 commit intoi18next:masterfrom
andersk:defaultValue
Open

fix(types): Mark defaultValue arguments required#1146
andersk wants to merge 1 commit intoi18next:masterfrom
andersk:defaultValue

Conversation

@andersk
Copy link

@andersk andersk commented Aug 6, 2025

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

  • only relevant code is changed (make a diff before you submit the PR)
  • 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

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.)

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@adrai
Copy link
Member

adrai commented Oct 1, 2025

fyi: #1148

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants