From 82525e0546079da7756a87a2a2d78be46302bad8 Mon Sep 17 00:00:00 2001 From: dw-0 Date: Thu, 24 Oct 2024 17:30:13 +0200 Subject: [PATCH] fix: @typescript-eslint/prefer-function-type Signed-off-by: Dominik Willner --- .eslintrc.json | 1 - apps/client/src/app/util/form.util.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index a66ee6f02..445d2d477 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -142,7 +142,6 @@ // The following rules are part of @typescript-eslint/stylistic-type-checked // and can be remove once solved - "@typescript-eslint/prefer-function-type": "warn", "@typescript-eslint/prefer-nullish-coalescing": "warn", // TODO: Requires strictNullChecks: true "@typescript-eslint/consistent-type-assertions": "warn", "@typescript-eslint/prefer-optional-chain": "warn", diff --git a/apps/client/src/app/util/form.util.ts b/apps/client/src/app/util/form.util.ts index f629cc4a2..425aa4699 100644 --- a/apps/client/src/app/util/form.util.ts +++ b/apps/client/src/app/util/form.util.ts @@ -8,7 +8,7 @@ export async function validateObjectForForm({ ignoreFields = [], object }: { - classDto: { new (): T }; + classDto: new () => T; form: FormGroup; ignoreFields?: string[]; object: T;