From 83df0850cecdb45933a007bfdda7d25e8243d128 Mon Sep 17 00:00:00 2001 From: Tuan Dang Date: Wed, 30 Apr 2025 19:44:56 -0700 Subject: [PATCH] Fix frontend lint issues --- frontend/src/hooks/api/sshHost/types.ts | 5 ++--- frontend/src/hooks/api/sshHostGroup/types.ts | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/hooks/api/sshHost/types.ts b/frontend/src/hooks/api/sshHost/types.ts index 8451be4d3..e92ddeaa8 100644 --- a/frontend/src/hooks/api/sshHost/types.ts +++ b/frontend/src/hooks/api/sshHost/types.ts @@ -20,14 +20,13 @@ export type TSshHost = { hostCertTtl: string; loginMappings: TLoginMapping[]; }; - export type TCreateSshHostDTO = { projectId: string; hostname: string; alias?: string; userCertTtl?: string; hostCertTtl?: string; - loginMappings: TLoginMapping[]; + loginMappings: Omit[]; }; export type TUpdateSshHostDTO = { @@ -36,7 +35,7 @@ export type TUpdateSshHostDTO = { alias?: string; userCertTtl?: string; hostCertTtl?: string; - loginMappings?: TLoginMapping[]; + loginMappings?: Omit[]; }; export type TDeleteSshHostDTO = { diff --git a/frontend/src/hooks/api/sshHostGroup/types.ts b/frontend/src/hooks/api/sshHostGroup/types.ts index 24f36f5ab..6e193c8b6 100644 --- a/frontend/src/hooks/api/sshHostGroup/types.ts +++ b/frontend/src/hooks/api/sshHostGroup/types.ts @@ -4,19 +4,19 @@ export type TSshHostGroup = { id: string; projectId: string; name: string; - loginMappings: TLoginMapping[]; + loginMappings: Omit[]; }; export type TCreateSshHostGroupDTO = { projectId: string; name: string; - loginMappings: TLoginMapping[]; + loginMappings: Omit[]; }; export type TUpdateSshHostGroupDTO = { sshHostGroupId: string; name?: string; - loginMappings?: TLoginMapping[]; + loginMappings?: Omit[]; }; export type TDeleteSshHostGroupDTO = {