Skip to content

FunctionComponentOptions interface should allow model #8210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lazarljubenovic opened this issue May 21, 2018 · 0 comments · Fixed by #8212
Closed

FunctionComponentOptions interface should allow model #8210

lazarljubenovic opened this issue May 21, 2018 · 0 comments · Fixed by #8212

Comments

@lazarljubenovic
Copy link

What problem does this feature solve?

It allows developers to use a functional way of declaring a component and utilizing the model config at the same time. It's already possible when using pure JavaScript.

What does the proposed API look like?

Add the missing part of the interface

  model?: {
    prop?: string;
    event?: string;
  };

to the existing interface FunctionalComponentOptions<Props = DefaultProps, PropDefs = PropsDefinition<Props>>.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants