From 78deb798e30cdd28cd8910061828786bf028bbe3 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 24 May 2024 12:14:58 +0200 Subject: [PATCH] Target ES2022 when building the TypeScript definitions (issue 17932) This should avoid the latest JS features appearing in the TypeScript definitions, and given the currently supported browsers/environments (in PDF.js) we shouldn't need to target an even older ES-version. --- tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 7ff5a9de001cd..21d240d7d23dd 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "target": "ESNext", + "target": "ES2022", "allowJs": true, "declaration": true, "strict": true,