From 696cc4f4bfb087f1025b7004f2d62465bc47be0a Mon Sep 17 00:00:00 2001 From: Gianluca Zuccarelli Date: Fri, 29 Nov 2024 10:34:22 +0000 Subject: [PATCH] tsconfig: exactOptionalPropertyTypes This is a recommended setting, see: https://www.typescriptlang.org/tsconfig/#exactOptionalPropertyTypes --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index f7c00f89..a6b70cdb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,11 @@ "sourceMap": true, "allowJs": true, "moduleResolution": "node", - "types": ["vitest/globals", "@testing-library/jest-dom"], + "types": [ + "vitest/globals", + "@testing-library/jest-dom" + ], + "exactOptionalPropertyTypes": true, "strictNullChecks": true, "allowSyntheticDefaultImports": true }