Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54b5169

Browse files
committed
types: use unknown to better infer types on nested t functions also for older typescript version#2032
1 parent2d42064 commit54b5169

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
##23.5.1
2+
3+
- types: use unknown to better infer types on nested t functions also for older typescript version[2032](https://github.com/i18next/i18next/issues/2032)
4+
15
##23.5.0
26

37
- types: use unknown to better infer types on nested t functions[2018](https://github.com/i18next/i18next/pull/2018)

‎typescript/t.v4.d.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,10 @@ type ParseInterpolationValues<Ret> =
134134
|(Valueextends `${inferActualValue},${string}` ?ActualValue :Value)
135135
|ParseInterpolationValues<Rest>
136136
:never;
137-
typeInterpolationMap<Ret>=Record<$PreservedValue<ParseInterpolationValues<Ret>,string>,any>;
137+
typeInterpolationMap<Ret>=Record<
138+
$PreservedValue<ParseInterpolationValues<Ret>,string>,
139+
unknown
140+
>;
138141

139142
typeParseTReturnPlural<
140143
Res,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp