diff --git a/packages/plugin-form-builder/tsconfig.json b/packages/plugin-form-builder/tsconfig.json index 6c57b9f88..99d6fca7f 100644 --- a/packages/plugin-form-builder/tsconfig.json +++ b/packages/plugin-form-builder/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "references": [{ "path": "../payload" }, { "path": "../ui" }] } diff --git a/packages/plugin-nested-docs/tsconfig.json b/packages/plugin-nested-docs/tsconfig.json index 14564e071..35bda5a05 100644 --- a/packages/plugin-nested-docs/tsconfig.json +++ b/packages/plugin-nested-docs/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "references": [{ "path": "../payload" }] } diff --git a/packages/plugin-redirects/tsconfig.json b/packages/plugin-redirects/tsconfig.json index 14564e071..35bda5a05 100644 --- a/packages/plugin-redirects/tsconfig.json +++ b/packages/plugin-redirects/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "references": [{ "path": "../payload" }] } diff --git a/packages/plugin-search/tsconfig.json b/packages/plugin-search/tsconfig.json index 4f8775677..1d4d43b8f 100644 --- a/packages/plugin-search/tsconfig.json +++ b/packages/plugin-search/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }] } diff --git a/packages/plugin-seo/tsconfig.json b/packages/plugin-seo/tsconfig.json index 4f8775677..1d4d43b8f 100644 --- a/packages/plugin-seo/tsconfig.json +++ b/packages/plugin-seo/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }] } diff --git a/packages/plugin-stripe/tsconfig.json b/packages/plugin-stripe/tsconfig.json index 4f8775677..1d4d43b8f 100644 --- a/packages/plugin-stripe/tsconfig.json +++ b/packages/plugin-stripe/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "references": [{ "path": "../payload" }, { "path": "../ui" }, { "path": "../next" }] } diff --git a/packages/richtext-slate/tsconfig.json b/packages/richtext-slate/tsconfig.json index b28e8a065..d790337dc 100644 --- a/packages/richtext-slate/tsconfig.json +++ b/packages/richtext-slate/tsconfig.json @@ -10,7 +10,6 @@ /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "exclude": [ "dist", diff --git a/packages/storage-azure/src/utils/getRangeFromHeader.ts b/packages/storage-azure/src/utils/getRangeFromHeader.ts index 6cf9f42bc..b1e0dca01 100644 --- a/packages/storage-azure/src/utils/getRangeFromHeader.ts +++ b/packages/storage-azure/src/utils/getRangeFromHeader.ts @@ -22,5 +22,5 @@ export const getRangeFromHeader = async ( return fullRange } - return range[0] + return range[0] ?? fullRange } diff --git a/packages/storage-azure/tsconfig.json b/packages/storage-azure/tsconfig.json index 67791916a..459842564 100644 --- a/packages/storage-azure/tsconfig.json +++ b/packages/storage-azure/tsconfig.json @@ -6,9 +6,6 @@ "emitDeclarationOnly": true, "outDir": "./dist" /* Specify an output folder for all emitted files. */, "rootDir": "./src" /* Specify the root folder within your source files. */, - - /* TODO: remove the following lines */ - "noUncheckedIndexedAccess": false, }, "exclude": ["dist", "node_modules"], "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.d.ts", "src/**/*.json"], diff --git a/packages/storage-uploadthing/tsconfig.json b/packages/storage-uploadthing/tsconfig.json index e91d20116..f25849eb0 100644 --- a/packages/storage-uploadthing/tsconfig.json +++ b/packages/storage-uploadthing/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "references": [{ "path": "../payload" }, { "path": "../plugin-cloud-storage" }] } diff --git a/packages/translations/tsconfig.json b/packages/translations/tsconfig.json index 5a894e7e8..108dd3ebc 100644 --- a/packages/translations/tsconfig.json +++ b/packages/translations/tsconfig.json @@ -3,6 +3,5 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, } } diff --git a/packages/ui/tsconfig.json b/packages/ui/tsconfig.json index ce82aadf9..1eb69dad9 100644 --- a/packages/ui/tsconfig.json +++ b/packages/ui/tsconfig.json @@ -3,7 +3,6 @@ "compilerOptions": { /* TODO: remove the following lines */ "strict": false, - "noUncheckedIndexedAccess": false, }, "references": [{ "path": "../payload" }, { "path": "../translations" }] }