chore(plugin-redirects): enable TypeScript strict (#11931)

This commit is contained in:
Germán Jabloñski
2025-04-03 10:04:21 -03:00
committed by GitHub
parent fd42ad5f52
commit 6c735effff
2 changed files with 3 additions and 5 deletions

View File

@@ -16,7 +16,9 @@ export const redirectsPlugin =
pluginConfig?.redirectTypes?.includes(option.value),
),
required: true,
...((pluginConfig?.redirectTypeFieldOverride || {}) as SelectField),
...((pluginConfig?.redirectTypeFieldOverride || {}) as {
hasMany: boolean
} & Partial<SelectField>),
}
const defaultFields: Field[] = [

View File

@@ -1,8 +1,4 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
/* TODO: remove the following lines */
"strict": false,
},
"references": [{ "path": "../payload" }]
}