Skip to content

Commit 1abcdf9

Browse files
authored
fix(translations): type StripCountVariants not working in TS strict mode (#6374)
This also removes the unnecessary StripCountVariants utility use for when NestedKeysStripped<T[K]> is an object
1 parent 3456b5f commit 1abcdf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/translations/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export type NestedKeysStripped<T> = T extends object
7979
? {
8080
[K in keyof T]-?: K extends string
8181
? T[K] extends object
82-
? `${K}:${StripCountVariants<NestedKeysStripped<T[K]>>}` | null
82+
? `${K}:${NestedKeysStripped<T[K]>}`
8383
: `${StripCountVariants<K>}`
8484
: never
8585
}[keyof T]

0 commit comments

Comments
 (0)