Skip to content

Commit

Permalink
Try to fix typescript checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Talagaev committed Sep 25, 2023
1 parent 72eba7f commit 50cf02b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/RegistrationForm/RegistrationForm.ts
Original file line number Diff line number Diff line change
@@ -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)],
]),
}

Expand Down

0 comments on commit 50cf02b

Please sign in to comment.