diff --git a/packages/frontend-plugin-api/src/translation/TranslationRef.ts b/packages/frontend-plugin-api/src/translation/TranslationRef.ts index c621ec6d24..796c23114b 100644 --- a/packages/frontend-plugin-api/src/translation/TranslationRef.ts +++ b/packages/frontend-plugin-api/src/translation/TranslationRef.ts @@ -60,7 +60,7 @@ type FlattenedMessages = string}`]: TNested[TNestedKey]; } : never - : { [_ in TKey]: TMessages[TKey] }, // Other primitive values are passed through with the same key, + : never, // Unreachable: TMessages[TKey] is always string or AnyNestedMessages ) => void; // The `[keyof TMessages]` extracts the object values union from our flattened structure, still wrapped up in function parameters. // The `extends (_: infer TIntersection) => void` flips the union to an intersection, at which point we have the correct type.