-
Notifications
You must be signed in to change notification settings - Fork 532
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
feat(ts): convert Template component to TypeScript #4703
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e922cc2:
|
templatesConfig: {}, | ||
}); | ||
|
||
class Template extends Component<TemplateProps> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
template should be generic with TData
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried it but I was not able to pass it without breaking everything 😞
I took another approach and used PreparedTemplateProps
to create part of the props (but as a result TTemplateData
is still set to any
). We can work together on this to find a better solution if you want.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can iterate on this another time since the component is internal, possibly add a todo here?
018751f
to
a7022eb
Compare
Summary
Converts the
Template
component to TypeScript