chore: Update tags field schema to use DeviceConfig, enhance isDevice type check, and adjust IntelliJ workspace

This commit is contained in:
Andreas Hilbig 2026-01-16 20:24:08 +01:00
parent 8e5fbc3f57
commit 0c1f585909
6 changed files with 54 additions and 17 deletions

View file

@ -2,8 +2,7 @@ import {isObjectType} from "graphql";
import {logger} from "../logging/logger.js";
import {Device, Host} from "../schema/generated/graphql.js";
export const isDevice = (value: Host): value is Device => !!(value as Device).deviceType;
export const isDevice = (value: Host | undefined): value is Device => !!(value as Device)?.deviceType;
/*
As a default all . - seperators within a key shall be replaced by a Capital letter of the following word
*/