From 456fb9ddf8784f402b1fa67aaf8b3d6fde2b7244 Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Sat, 17 Feb 2024 21:59:47 +0100 Subject: [PATCH] add iobroker types globally --- src/index.ts | 2 +- tsconfig.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c21ac44..04a1332 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,3 @@ export * as network from "./network"; export * as translate from "./translate"; -export * as util from "./util"; +export * as util from "./util"; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 5f7afd0..f7935a8 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -15,6 +15,11 @@ "outDir": "./build/", "removeComments": false, + "types": [ + "@iobroker/types", + "node", + "mocha" + ], // Avoid runtime imports that are unnecessary // "importsNotUsedAsValues": "error",