First batch of ramda removals

This commit is contained in:
Alejandro Celaya
2023-11-01 10:03:09 +01:00
parent 98b2db99b3
commit 8699eaca32
8 changed files with 39 additions and 34 deletions

View File

@@ -1,4 +1,3 @@
import { omit } from 'ramda';
import type { SemVer } from '../../utils/helpers/version';
export interface ServerData {
@@ -45,5 +44,4 @@ export const isNotFoundServer = (server: SelectedServer): server is NotFoundServ
export const getServerId = (server: SelectedServer) => (isServerWithId(server) ? server.id : '');
export const serverWithIdToServerData = (server: ServerWithId): ServerData =>
omit<ServerWithId, 'id' | 'autoConnect'>(['id', 'autoConnect'], server);
export const serverWithIdToServerData = ({ id, autoConnect, ...server }: ServerWithId): ServerData => server;