From 28854d48a33178a09ed82f8f02770b55f642b8ec Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 6 Nov 2023 22:59:25 +0700 Subject: [PATCH] Make TypeScript accepts some more Node.js 18 features Node.js 18 seems to support some ES2023 features too. --- tsconfig.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tsconfig.json b/tsconfig.json index b4025814..7f537b80 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,6 +2,11 @@ "extends": "@sindresorhus/tsconfig", "compilerOptions": { "outDir": "build", + "lib": [ + "DOM", + "DOM.Iterable", + "ES2023" + ], "sourceMap": true, "jsx": "react", "isolatedModules": true