From 93a5fa5b88020c623c0b9f244bffa0e1c0a3e66d Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Fri, 21 Feb 2025 14:10:35 +0100 Subject: [PATCH] Disable the loading of node types in the type tests Those type tests are performing type checking on a project using DOM APIs, intended to reflect the usage in a non-node project. Not loading the node types in that project ensures that the library type declarations don't force a dependency on the node types. --- test/types/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/types/tsconfig.json b/test/types/tsconfig.json index 772a382c7..5cd8ef450 100644 --- a/test/types/tsconfig.json +++ b/test/types/tsconfig.json @@ -10,7 +10,7 @@ "module": "ESNext", "baseUrl": "./", "strict": true, - "types": ["node"], + "types": [], "lib": ["ESNext", "DOM"], "paths": { "pdfjs-dist": ["../../build/typestest"],