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.
This commit is contained in:
Jonas Jenwald 2024-05-24 12:14:58 +02:00
parent 08bf96865d
commit 78deb798e3

View file

@ -1,6 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ES2022",
"allowJs": true, "allowJs": true,
"declaration": true, "declaration": true,
"strict": true, "strict": true,