Skip to content
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

Merged
merged 3 commits into from
Apr 1, 2021

Conversation

yannickcr
Copy link
Contributor

Summary

Converts the Template component to TypeScript

@yannickcr yannickcr requested review from a team, eunjae-lee and shortcuts and removed request for a team March 29, 2021 16:33
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 29, 2021

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:

Sandbox Source
InstantSearch.js Configuration

templatesConfig: {},
});

class Template extends Component<TemplateProps> {
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Base automatically changed from feat/ts-ratingmenu to master March 31, 2021 09:06
@yannickcr yannickcr requested a review from Haroenv March 31, 2021 13:42
@yannickcr yannickcr requested a review from Haroenv April 1, 2021 14:04
@yannickcr yannickcr merged commit 0688571 into master Apr 1, 2021
@yannickcr yannickcr deleted the feat/ts-template branch April 1, 2021 15:28
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.

None yet

2 participants