Troubles using casting and current typings.
Opened this issue · 1 comments
I have troubles to reuse the project with typescript.
If I follow default examples then SolrClient typing is missing getHandlers();
If I want to use the component lego, then I need to cast.
const TextSearch = defaultComponentPack.searchFields.text as any;
Even then I have trouble to access correctly.
state.query.searchFields and state.results.docs
How to use Component Lego with typescript, can you make some example?
Dear Johnz86,
I have to admit I added the typescript typings as a bit of an experiment. At the time we were considering porting to typescript and indeed I did struggle with the typings for custom components. I will have to put this issue on hold for today, but I will try and find the time this and next week to improve the typings and get it up and running (no promises though).
Should you feel inclined to improve the typings yourself I will welcome any pull request.
Happy new year & best wishes,
René