From a235c5fea2b006e63b5289312c1895355bb6c1b4 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 18 Aug 2025 14:21:53 +0800 Subject: [PATCH 1/2] fix: disable `exactOptionalPropertyTypes` for now Even popular libraries can't easily migrate to this option at the moment. I think we need 1. more consensus on whether this should be the default in the Vue.js ecosystem, and 2. a softer way to push this forward before making it a type error. --- tsconfig.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index 8b21832..04b1cc0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -34,7 +34,9 @@ // See // These 2 options are also part of the recommended tsconfig as of TS 5.9 "noUncheckedIndexedAccess": true, - "exactOptionalPropertyTypes": true, + // Commented out for now. It's hard to land in the current ecosystem. + // Needs more consensus before moving forward. + // "exactOptionalPropertyTypes": true, // // Any imports or exports without a type modifier are left around. This is important for `