diff --git a/packages/nc-gui-v2/utils/projectCreateUtils.ts b/packages/nc-gui-v2/utils/projectCreateUtils.ts index 351256e248..ac66ced32d 100644 --- a/packages/nc-gui-v2/utils/projectCreateUtils.ts +++ b/packages/nc-gui-v2/utils/projectCreateUtils.ts @@ -12,7 +12,7 @@ export interface ProjectCreateForm { inflectionTable?: string } sslUse?: SSLUsage - extraParameters: Record[] + extraParameters: { key: string; value: string }[] } export interface DefaultConnection { diff --git a/packages/nc-gui-v2/utils/validation.ts b/packages/nc-gui-v2/utils/validation.ts index 676c7007fd..a5e63464a8 100644 --- a/packages/nc-gui-v2/utils/validation.ts +++ b/packages/nc-gui-v2/utils/validation.ts @@ -129,7 +129,7 @@ export const importExcelUrlValidator = { } export const extraParameterValidator = { - validator: (_: unknown, value: any) => { + validator: (_: unknown, value: { key: string; value: string }[]) => { return new Promise((resolve, reject) => { for (const param of value) { if (param.key === '') {