Feature/update i18next to v23.x (#391)
* Update i18next to v23.x Update to version 23.2.7 * Use new "ParseKeys" (old: "TFuncKey") type * Remove unnecessary casts to string Not needed anymore with the latest version
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
import { OverridableComponent } from '@mui/material/OverridableComponent';
|
||||
import { SvgIconTypeMap } from '@mui/material/SvgIcon/SvgIcon';
|
||||
import { TFuncKey } from 'i18next';
|
||||
import { ParseKeys } from 'i18next';
|
||||
import { Location } from 'react-router-dom';
|
||||
|
||||
type GenericLocation<State = any> = Omit<Location, 'state'> & { state?: State };
|
||||
@@ -19,7 +19,7 @@ declare module 'react-router-dom' {
|
||||
export function useLocation<State = any>(): GenericLocation<State>;
|
||||
}
|
||||
|
||||
export type TranslationKey = TFuncKey;
|
||||
export type TranslationKey = ParseKeys;
|
||||
|
||||
export interface IExtension {
|
||||
name: string;
|
||||
|
||||
Reference in New Issue
Block a user