From 50cf02b83a6f5ca77410999934e7c26a1610d7b4 Mon Sep 17 00:00:00 2001 From: Evgeny Talagaev Date: Mon, 25 Sep 2023 19:40:03 +0300 Subject: [PATCH] Try to fix typescript checks --- src/components/RegistrationForm/RegistrationForm.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/RegistrationForm/RegistrationForm.ts b/src/components/RegistrationForm/RegistrationForm.ts index 7979493bc..8bc83ee35 100644 --- a/src/components/RegistrationForm/RegistrationForm.ts +++ b/src/components/RegistrationForm/RegistrationForm.ts @@ -1,13 +1,14 @@ import { Block } from "../../core/index"; import template from "./RegistrationForm.tmp.pug"; import { getValuesFromForm } from "../utils/index"; +import { Event } from "../utils/getValuesFromForm"; export default class RegistrationForm extends Block { constructor(props?: object) { const newProps = { ...props, events: new Map([ - ['submit', (event: object) => getValuesFromForm(event, this)], + ['submit', (event: Event) => getValuesFromForm(event, this)], ]), }