🏷️ Apply namespace types to translations

This commit is contained in:
Manuel
2023-08-05 17:45:50 +02:00
parent a287b87a4a
commit bd4b7b8c13
4 changed files with 11 additions and 4 deletions

View File

@@ -4,8 +4,12 @@ import { useTranslation } from 'next-i18next';
import { DashDotCompactNetwork, DashDotInfo } from './DashDotCompactNetwork';
import { DashDotCompactStorage } from './DashDotCompactStorage';
import { CustomTypeOptions } from 'i18next';
type GraphType = keyof CustomTypeOptions['resources']['modules/dashdot']['card']['graphs'];
interface DashDotGraphProps {
graph: string;
graph: GraphType;
graphHeight: number;
isCompact: boolean;
multiView: boolean;