From a5de39b8eff9413f1ea3604e4e7bb5b3e43f894b Mon Sep 17 00:00:00 2001 From: Eran Hirsch Date: Tue, 30 Dec 2025 18:06:43 +0000 Subject: [PATCH] fix(playground): enable and by default --- packages/sandbox/src/compilerOptions.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/sandbox/src/compilerOptions.ts b/packages/sandbox/src/compilerOptions.ts index 7d319c0009d1..79babab6f133 100644 --- a/packages/sandbox/src/compilerOptions.ts +++ b/packages/sandbox/src/compilerOptions.ts @@ -24,7 +24,8 @@ export function getDefaultSandboxCompilerOptions( strictBindCallApply: true, noImplicitThis: true, noImplicitReturns: true, - noUncheckedIndexedAccess: false, + noUncheckedIndexedAccess: true, + exactOptionalPropertyTypes: true, // 3.7 off, 3.8 on I think useDefineForClassFields: false, @@ -85,7 +86,8 @@ export const getCompilerOptionsFromParams = ( let toSet = undefined if (val === "true" && playgroundDefaults[key] !== true) { toSet = true - } else if (val === "false" && (playgroundDefaults[key] as any) !== false) { // TODO(jakebailey): remove as any, check undefined above + } else if (val === "false" && (playgroundDefaults[key] as any) !== false) { + // TODO(jakebailey): remove as any, check undefined above toSet = false } else if (!isNaN(parseInt(val, 10)) && playgroundDefaults[key] !== parseInt(val, 10)) { toSet = parseInt(val, 10)