Skip to content

Commit a5de39b

Browse files
committed
fix(playground): enable and by default
1 parent 9ec526c commit a5de39b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/sandbox/src/compilerOptions.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export function getDefaultSandboxCompilerOptions(
2424
strictBindCallApply: true,
2525
noImplicitThis: true,
2626
noImplicitReturns: true,
27-
noUncheckedIndexedAccess: false,
27+
noUncheckedIndexedAccess: true,
28+
exactOptionalPropertyTypes: true,
2829

2930
// 3.7 off, 3.8 on I think
3031
useDefineForClassFields: false,
@@ -85,7 +86,8 @@ export const getCompilerOptionsFromParams = (
8586
let toSet = undefined
8687
if (val === "true" && playgroundDefaults[key] !== true) {
8788
toSet = true
88-
} else if (val === "false" && (playgroundDefaults[key] as any) !== false) { // TODO(jakebailey): remove as any, check undefined above
89+
} else if (val === "false" && (playgroundDefaults[key] as any) !== false) {
90+
// TODO(jakebailey): remove as any, check undefined above
8991
toSet = false
9092
} else if (!isNaN(parseInt(val, 10)) && playgroundDefaults[key] !== parseInt(val, 10)) {
9193
toSet = parseInt(val, 10)

0 commit comments

Comments
 (0)