-
Notifications
You must be signed in to change notification settings - Fork 50
WIP: Only way found to fix nasty erros on TS build. #92
base: master
Are you sure you want to change the base?
WIP: Only way found to fix nasty erros on TS build. #92
Conversation
Codecov Report
@@ Coverage Diff @@
## master #92 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 6 6
Lines 68 68
Branches 11 11
=====================================
Hits 68 68 Continue to review full report at Codecov.
|
The first warning seem explicitly enough for me. I would move on Plus, returns seem incorrect, as since #59 helpers do not return VNode, they return Lazy Components. |
Untested. I knew that DT use I think it is more related to So I would try to extend |
But this means an update on the |
@nmpribeiro Maybe someone with more TS experience can comment. |
At least someone able to understand the return types of these JSX.Element and the VNode. h function should only expect JSX.Element right (at least only VNode)?. I will look at that again when possible. |
export function Link(props: LinkProps): VNode<LinkProps> | any;
change request:export function Route<P>( props: RouteProps<P>): VNode<RenderProps<P>> | any;
change request:Let me know if you guys find exactly which type we should declare.