chore: Update tags field schema to use DeviceConfig, enhance isDevice type check, and adjust IntelliJ workspace
This commit is contained in:
parent
8e5fbc3f57
commit
0c1f585909
6 changed files with 54 additions and 17 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue