diff options
Diffstat (limited to 'packages/demobank-ui/src/utils.ts')
-rw-r--r-- | packages/demobank-ui/src/utils.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/demobank-ui/src/utils.ts b/packages/demobank-ui/src/utils.ts index 7cdd8a861..2d55e4ff1 100644 --- a/packages/demobank-ui/src/utils.ts +++ b/packages/demobank-ui/src/utils.ts @@ -1,6 +1,6 @@ /* This file is part of GNU Taler - (C) 2022 Taler Systems S.A. + (C) 2022-2024 Taler Systems S.A. GNU Taler is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -84,13 +84,13 @@ export type RecursivePartial<Type> = { export type ErrorMessageMappingFor<Type> = { [prop in keyof Type]+?: //enumerate known object - Exclude<Type[prop],undefined> extends PaytoString ? TranslatedString : - Exclude<Type[prop],undefined> extends AmountString ? TranslatedString : - Exclude<Type[prop],undefined> extends TranslatedString ? TranslatedString : + Exclude<Type[prop], undefined> extends PaytoString ? TranslatedString : + Exclude<Type[prop], undefined> extends AmountString ? TranslatedString : + Exclude<Type[prop], undefined> extends TranslatedString ? TranslatedString : // arrays: every element - Exclude<Type[prop],undefined> extends (infer U)[] ? ErrorMessageMappingFor<U>[] : + Exclude<Type[prop], undefined> extends (infer U)[] ? ErrorMessageMappingFor<U>[] : // map: every field - Exclude<Type[prop],undefined> extends object ? ErrorMessageMappingFor<Type[prop]> + Exclude<Type[prop], undefined> extends object ? ErrorMessageMappingFor<Type[prop]> : TranslatedString; }; |