Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/sandbox/src/compilerOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)
Expand Down