From 0e30ec1f964eee347e9728c2b96e7b2f1e6ba47e Mon Sep 17 00:00:00 2001 From: baldo Date: Thu, 25 Aug 2022 22:14:59 +0200 Subject: [PATCH] Get rid of any. --- server/shared/types/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/shared/types/index.ts b/server/shared/types/index.ts index b4677d8..016fee4 100644 --- a/server/shared/types/index.ts +++ b/server/shared/types/index.ts @@ -695,7 +695,13 @@ export type NodesFilter = { onlineState?: OnlineState; }; -export const NODES_FILTER_FIELDS = { +export const NODES_FILTER_FIELDS: Record< + keyof NodesFilter, + | BooleanConstructor + | StringConstructor + | typeof MonitoringState + | typeof OnlineState +> = { hasKey: Boolean, hasCoords: Boolean, monitoringState: MonitoringState,