Skip to content

hooks/13_login_form/fix function parameters#173

Merged
brauliodiez merged 2 commits intoLemoncode:masterfrom
maxfarseer:master
Mar 6, 2019
Merged

hooks/13_login_form/fix function parameters#173
brauliodiez merged 2 commits intoLemoncode:masterfrom
maxfarseer:master

Conversation

@maxfarseer
Copy link
Copy Markdown
Contributor

I think it's a typo, but there is forgotten parameters name before types

@maxfarseer maxfarseer changed the title fix function parameters hooks/13_login_form/fix function parameters Mar 6, 2019
interface PropsForm {
onLogin: () => void;
onUpdateField: (string, any) => void;
onUpdateField: (name: string, value: any) => void;
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should it be value: string here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be for this case you are right, we are passing an string (just don't wanted to tie it up, maybe another control could use another type)

@brauliodiez
Copy link
Copy Markdown
Member

Thanks a lot, great catch

@brauliodiez brauliodiez merged commit 3303caf into Lemoncode:master Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants