chore: Add missing ".js" extensions to imports and improve Node.js compatibility for dynamic schema loading
This commit is contained in:
parent
1c1aeb4519
commit
98c612fc56
15 changed files with 121 additions and 70 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import {isObjectType} from "graphql";
|
||||
import {logger} from "../logging/logger.js";
|
||||
import {Device, Host} from "../schema/generated/graphql";
|
||||
import {Device, Host} from "../schema/generated/graphql.js";
|
||||
|
||||
export const isDevice = (value: Host): value is Device => !!(value as Device).deviceType;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue